Skip to content
Snippets Groups Projects
Commit 44d3d012 authored by Mark Beierl's avatar Mark Beierl
Browse files

Bug 1501 - Correct tag for push


Change to use the tag of the current build to promote to the
final dockertag that is pushed to Dockerhub

Fixes bug 1501

Change-Id: I13b83afd9dad013cd51b646a6a14399c8c62cd3c
Signed-off-by: default avatarbeierlm <mark.beierl@canonical.com>
parent 9c33b5a2
No related branches found
No related tags found
No related merge requests found
......@@ -557,11 +557,13 @@ EOF"""
for (buildStep in containerList) {
def module = buildStep
def moduleName = buildStep.toLowerCase()
def moduleTag = params.DOCKER_TAG
def dockerTag = params.DOCKER_TAG
def moduleTag = container_name
parallelSteps[module] = {
dir("$module") {
sh "docker tag opensourcemano/${moduleName}:${moduleTag} opensourcemano/${moduleName}:${moduleTag}"
sh "docker push opensourcemano/${moduleName}:${moduleTag}"
sh "docker tag opensourcemano/${moduleName}:${moduleTag} opensourcemano/${moduleName}:${dockerTag}"
sh "docker push opensourcemano/${moduleName}:${dockerTag}"
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment