generate jenkinsfile
dockers/alpine/pipeline/head There was a failure building this commit Details

This commit is contained in:
chris 2020-10-28 17:49:09 +01:00
parent 1b1fa57e00
commit 9aa09d664b
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -30,10 +30,11 @@ pipeline {
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
withDockerRegistry([ credentialsId: quay_credentials, url: "https://quay.io" ]) {
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
sh "docker push " + quay_image
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image.split(/\:/)[0] + ":latest"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":latest"
sh "docker push " + official_image.split(/\:/)[0] + ":latest"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image.split(/\:/)[0] + ":3.12"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.12"
sh "docker push " + official_image.split(/\:/)[0] + ":3.12"
}
}