var fix
dockers/alpine/pipeline/head This commit looks good Details

This commit is contained in:
chris 2020-08-26 15:08:52 +02:00
parent ec7cb46d55
commit ec22356fea
1 changed files with 5 additions and 5 deletions

10
Jenkinsfile vendored
View File

@ -19,8 +19,8 @@ pipeline {
customImage.push(version.split(/\./)[0])
customImage.push("latest")
registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
withDockerRegistry([ credentialsId: registry_credentials ]) {
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
def official_image = repo+'/'+project+':'+version.split(/\./)[0,1].join('.')
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image.split(/\:/)[0]
@ -28,9 +28,9 @@ pipeline {
sh "docker push " + official_image.split(/\:/)[0]
}
quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
withDockerRegistry([ credentialsId: quay_registry_credentials, url: "https://quay.io" ]) {
def official_image = 'https://quay.io'+repo+'/'+project+':'+version.split(/\./)[0,1].join('.')
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
withDockerRegistry([ credentialsId: quay_credentials, url: "https://quay.io" ]) {
def official_image = 'quay.io/'+repo+'/'+project+':'+version.split(/\./)[0,1].join('.')
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image.split(/\:/)[0]
sh "docker push " + official_image