generate jenkinsfile
Some checks failed
dockers/alpine/pipeline/head There was a failure building this commit
Some checks failed
dockers/alpine/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1b1fa57e00
commit
9aa09d664b
1 changed files with 3 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue