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