Fix docker push command to include registry in image path
This commit is contained in:
@@ -17,7 +17,7 @@ def call(Map args = [:]) {
|
|||||||
sh "echo \$DOCKER_PASS | docker login ${registry} -u \$DOCKER_USER --password-stdin"
|
sh "echo \$DOCKER_PASS | docker login ${registry} -u \$DOCKER_USER --password-stdin"
|
||||||
|
|
||||||
echo "Pushing Docker image: ${imageName}"
|
echo "Pushing Docker image: ${imageName}"
|
||||||
sh "docker push ${imageName}"
|
sh "docker push ${args.registry}/${imageName}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user