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: beierlm <mark.beierl@canonical.com>
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}"
}
}
}