Update 'Debian.yaml'
This commit is contained in:
27
Debian.yaml
27
Debian.yaml
@@ -866,6 +866,17 @@ packages:
|
|||||||
update: true
|
update: true
|
||||||
cleanup: true
|
cleanup: true
|
||||||
sets:
|
sets:
|
||||||
|
|
||||||
|
#Https Repo pkgs
|
||||||
|
- packages:
|
||||||
|
- gpg
|
||||||
|
- curl
|
||||||
|
- ca-certificates
|
||||||
|
action: install
|
||||||
|
early: true
|
||||||
|
variants:
|
||||||
|
- jenkins
|
||||||
|
|
||||||
#Minimal pkgs
|
#Minimal pkgs
|
||||||
- packages:
|
- packages:
|
||||||
- dialog
|
- dialog
|
||||||
@@ -919,9 +930,7 @@ packages:
|
|||||||
|
|
||||||
#Jenkins pkgs
|
#Jenkins pkgs
|
||||||
- packages:
|
- packages:
|
||||||
- gpg
|
- jenkins
|
||||||
- curl
|
|
||||||
- ca-certificates
|
|
||||||
- gcc
|
- gcc
|
||||||
- libc-dev
|
- libc-dev
|
||||||
action: install
|
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://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 == "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.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:
|
actions:
|
||||||
- trigger: post-unpack
|
- trigger: post-unpack
|
||||||
action: |-
|
action: |-
|
||||||
#!/bin/sh
|
#!/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.2.83";' > /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
|
||||||
|
|
||||||
- trigger: post-packages
|
- trigger: post-packages
|
||||||
action: |-
|
action: |-
|
||||||
@@ -974,14 +984,11 @@ actions:
|
|||||||
- jenkinsbuilder
|
- jenkinsbuilder
|
||||||
- imgbuilder
|
- imgbuilder
|
||||||
|
|
||||||
- trigger: post-packages
|
#Jenkins Repo key
|
||||||
|
- trigger: post-unpack
|
||||||
action: |-
|
action: |-
|
||||||
#!/bin/sh
|
#!/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
|
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:
|
variants:
|
||||||
- jenkins
|
- jenkins
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user