push to quay
This commit is contained in:
parent
b87b11572e
commit
ae1da58a90
|
@ -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]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue