|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
version = "3.12.3"
|
|
|
|
|
version = "3.11.7"
|
|
|
|
|
project = "alpine"
|
|
|
|
|
repo = "zknt"
|
|
|
|
|
registry = "reg.zknt.org"
|
|
|
|
@ -14,17 +14,14 @@ pipeline {
|
|
|
|
|
script {
|
|
|
|
|
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
|
|
|
|
|
customImage.push(version)
|
|
|
|
|
customImage.push("latest")
|
|
|
|
|
customImage.push("3.12")
|
|
|
|
|
customImage.push("3.11")
|
|
|
|
|
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
|
|
|
|
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
|
|
|
|
|
def io_registry_image = repo + '/' + project + ':' + version
|
|
|
|
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
|
|
|
|
|
sh "docker push " + io_registry_image
|
|
|
|
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":latest"
|
|
|
|
|
sh "docker push " + io_registry_image.split(/\:/)[0] + ":latest"
|
|
|
|
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.12"
|
|
|
|
|
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.12"
|
|
|
|
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.11"
|
|
|
|
|
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.11"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
|
|
|
|
@ -32,10 +29,8 @@ pipeline {
|
|
|
|
|
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 + ' ' + quay_image.split(/\:/)[0] + ":latest"
|
|
|
|
|
sh "docker push " + quay_image.split(/\:/)[0] + ":latest"
|
|
|
|
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.12"
|
|
|
|
|
sh "docker push " + quay_image.split(/\:/)[0] + ":3.12"
|
|
|
|
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.11"
|
|
|
|
|
sh "docker push " + quay_image.split(/\:/)[0] + ":3.11"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|