push to quay

This commit is contained in:
chris 2020-08-26 15:02:34 +02:00
parent b87b11572e
commit ae1da58a90
1 changed files with 9 additions and 0 deletions

9
Jenkinsfile vendored
View File

@ -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]
}
}
}
}