3.11.7
Some checks failed
dockers/alpine/pipeline/head There was a failure building this commit

This commit is contained in:
chris 2020-12-18 01:26:00 +01:00
parent edc938ad1e
commit 96a3db5b1f
3 changed files with 10 additions and 16 deletions

View file

@ -1,7 +1,7 @@
FROM alpine as build FROM alpine as build
ARG VERSION ARG VERSION
ENV ALPINE_SERIES 3.12 ENV ALPINE_SERIES 3.11
ENV ALPINE_MIRROR https://ftp.halifax.rwth-aachen.de/alpine/v${ALPINE_SERIES} ENV ALPINE_MIRROR https://ftp.halifax.rwth-aachen.de/alpine/v${ALPINE_SERIES}
ENV ALPINE_ARCH x86_64 ENV ALPINE_ARCH x86_64

19
Jenkinsfile vendored
View file

@ -1,4 +1,4 @@
version = "3.12.3" version = "3.11.7"
project = "alpine" project = "alpine"
repo = "zknt" repo = "zknt"
registry = "reg.zknt.org" registry = "reg.zknt.org"
@ -14,17 +14,14 @@ 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("latest") customImage.push("3.11")
customImage.push("3.12")
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] + ":latest" sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.11"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":latest" sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.11"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.12"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.12"
} }
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a" def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
@ -32,10 +29,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] + ":latest" sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.11"
sh "docker push " + quay_image.split(/\:/)[0] + ":latest" sh "docker push " + quay_image.split(/\:/)[0] + ":3.11"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.12"
sh "docker push " + quay_image.split(/\:/)[0] + ":3.12"
} }
} }
} }
@ -76,4 +71,4 @@ pipeline {
] ]
])) ]))
} }
} }

View file

@ -1,5 +1,4 @@
version: 3.12.3 version: 3.11.7
project: alpine project: alpine
additional_tags: additional_tags:
- latest - 3.11
- 3.12