diff --git a/Jenkinsfile b/Jenkinsfile index 8d20711..05a82b1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,6 +27,15 @@ pipeline { sh "docker push " + official_image 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('.') + 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 + sh "docker push " + official_image.split(/\:/)[0] + } } } }