Update 'Debian.yaml'
This commit is contained in:
27
Debian.yaml
27
Debian.yaml
@@ -866,6 +866,17 @@ packages:
|
||||
update: true
|
||||
cleanup: true
|
||||
sets:
|
||||
|
||||
#Https Repo pkgs
|
||||
- packages:
|
||||
- gpg
|
||||
- curl
|
||||
- ca-certificates
|
||||
action: install
|
||||
early: true
|
||||
variants:
|
||||
- jenkins
|
||||
|
||||
#Minimal pkgs
|
||||
- packages:
|
||||
- dialog
|
||||
@@ -919,9 +930,7 @@ packages:
|
||||
|
||||
#Jenkins pkgs
|
||||
- packages:
|
||||
- gpg
|
||||
- curl
|
||||
- ca-certificates
|
||||
- jenkins
|
||||
- gcc
|
||||
- libc-dev
|
||||
action: install
|
||||
@@ -935,13 +944,14 @@ packages:
|
||||
{% if image.release == "bullseye" %} deb http://deb.debian.org/debian {{ image.release }}-updates main contrib{% endif %}
|
||||
{% if image.release == "bullseye" %} deb http://security.debian.org {{ image.release }}-security main contrib{% endif %}
|
||||
{% if image.release != "sid" and image.release != "bullseye" and not (image.release == "wheezy" and image.architecture_mapped == "powerpc") and not (image.release == "wheezy" and image.architecture_mapped == "s390x") %}deb http://security.debian.org/debian-security {{ image.release }}/updates main{% endif %}
|
||||
{% if image.variant == "jenkins" %}deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] https://pkg.jenkins.io/debian-stable binary/{% endif %}
|
||||
|
||||
actions:
|
||||
- trigger: post-unpack
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
echo 'Acquire::http::Proxy "http://192.168.2.83:80";' > /etc/apt/apt.conf.d/01prox
|
||||
echo '#Acquire::http::Proxy "http://192.168.200.60:80";' >> /etc/apt/apt.conf.d/01prox
|
||||
echo 'Acquire::http::Proxy "http://192.168.2.83";' > /etc/apt/apt.conf.d/01prox
|
||||
echo '#Acquire::http::Proxy "http://192.168.2.83";' >> /etc/apt/apt.conf.d/01prox
|
||||
|
||||
- trigger: post-packages
|
||||
action: |-
|
||||
@@ -974,14 +984,11 @@ actions:
|
||||
- jenkinsbuilder
|
||||
- imgbuilder
|
||||
|
||||
- trigger: post-packages
|
||||
#Jenkins Repo key
|
||||
- trigger: post-unpack
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
curl --retry 7 --retry-delay 5 -s https://pkg.jenkins.io/debian-stable/jenkins.io.key | gpg --dearmor > /usr/share/keyrings/jenkins-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] https://pkg.jenkins.io/debian-stable binary/" >/etc/apt/sources.list.d/jenkins.list
|
||||
apt update
|
||||
apt install jenkins --no-install-recommends -y
|
||||
apt clean all
|
||||
variants:
|
||||
- jenkins
|
||||
|
||||
|
||||
Reference in New Issue
Block a user