This commit is contained in:
parent
547d16b855
commit
3feddb4316
3 changed files with 10 additions and 11 deletions
|
@ -2,7 +2,7 @@ FROM debian:stable as builder
|
||||||
RUN set -xe;\
|
RUN set -xe;\
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt-get install -y debootstrap &&\
|
apt-get install -y debootstrap &&\
|
||||||
debootstrap --include=apt,ca-certificates,curl --foreign --variant=minbase buster /dest &&\
|
debootstrap --include=apt,ca-certificates,curl --foreign --variant=minbase bullseye /dest &&\
|
||||||
sed -i 's/setup_proc//' /dest/debootstrap/suite-script
|
sed -i 's/setup_proc//' /dest/debootstrap/suite-script
|
||||||
|
|
||||||
FROM scratch as bootstrapped
|
FROM scratch as bootstrapped
|
||||||
|
@ -40,7 +40,7 @@ COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init
|
||||||
COPY apt-install /bin/apt-install
|
COPY apt-install /bin/apt-install
|
||||||
COPY checkupdates /bin/checkupdates
|
COPY checkupdates /bin/checkupdates
|
||||||
CMD "bash"
|
CMD "bash"
|
||||||
LABEL version.debian=buster \
|
LABEL version.debian=bullseyen \
|
||||||
version.gosu=$GOSU_VERSION \
|
version.gosu=$GOSU_VERSION \
|
||||||
version.dumb-init=$DUMB_INIT_VERSION \
|
version.dumb-init=$DUMB_INIT_VERSION \
|
||||||
build.date=$DATE
|
build.date=$DATE
|
||||||
|
|
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -1,4 +1,4 @@
|
||||||
version = "10"
|
version = "11"
|
||||||
project = "debian"
|
project = "debian"
|
||||||
repo = "zknt"
|
repo = "zknt"
|
||||||
registry = "reg.zknt.org"
|
registry = "reg.zknt.org"
|
||||||
|
@ -14,15 +14,15 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
|
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
|
||||||
customImage.push(version)
|
customImage.push(version)
|
||||||
customImage.push("buster")
|
customImage.push("bullseye")
|
||||||
customImage.push("stable")
|
customImage.push("stable")
|
||||||
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
||||||
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
|
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
|
||||||
def io_registry_image = repo + '/' + project + ':' + version
|
def io_registry_image = repo + '/' + project + ':' + version
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
|
||||||
sh "docker push " + io_registry_image
|
sh "docker push " + io_registry_image
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":buster"
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":bullseye"
|
||||||
sh "docker push " + io_registry_image.split(/\:/)[0] + ":buster"
|
sh "docker push " + io_registry_image.split(/\:/)[0] + ":bullseye"
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":stable"
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":stable"
|
||||||
sh "docker push " + io_registry_image.split(/\:/)[0] + ":stable"
|
sh "docker push " + io_registry_image.split(/\:/)[0] + ":stable"
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,8 @@ pipeline {
|
||||||
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
|
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
|
||||||
sh "docker push " + quay_image
|
sh "docker push " + quay_image
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":buster"
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":bullseye"
|
||||||
sh "docker push " + quay_image.split(/\:/)[0] + ":buster"
|
sh "docker push " + quay_image.split(/\:/)[0] + ":bullseye"
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":stable"
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":stable"
|
||||||
sh "docker push " + quay_image.split(/\:/)[0] + ":stable"
|
sh "docker push " + quay_image.split(/\:/)[0] + ":stable"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
version: 10
|
version: 11
|
||||||
project: debian
|
project: debian
|
||||||
additional_tags:
|
additional_tags:
|
||||||
- buster
|
- bullseye
|
||||||
- stable
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue