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