8713-testToMaster #3523
|
@ -255,10 +255,9 @@ def dockerBuildPush(service, context, dockerfile = null) {
|
||||||
if (dockerfile == null)
|
if (dockerfile == null)
|
||||||
dockerfile = "${context}/Dockerfile"
|
dockerfile = "${context}/Dockerfile"
|
||||||
|
|
||||||
def imageName = "${env.REGISTRY}/salix-${service}:${env.VERSION}"
|
docker.withRegistry("https://${env.REGISTRY}", 'docker-registry') {
|
||||||
def image = docker.build("${imageName}", "-f ${dockerfile} ${context}")
|
def imageName = "salix-${service}:${env.VERSION}"
|
||||||
|
def image = docker.build(imageName, "-f ${dockerfile} ${context}")
|
||||||
docker.withRegistry(env.REGISTRY, 'docker-registry') {
|
|
||||||
image.push()
|
image.push()
|
||||||
image.push(env.BRANCH_NAME)
|
image.push(env.BRANCH_NAME)
|
||||||
if (IS_LATEST) image.push('latest')
|
if (IS_LATEST) image.push('latest')
|
||||||
|
|
Loading…
Reference in New Issue