From ae1da58a9088fe2d8d5d9ddfd456767a3c1a8cbb Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 26 Aug 2020 15:02:34 +0200 Subject: [PATCH] push to quay --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) 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] + } } } }