Update docker scripts
[releng/global-jjb.git] / shell / docker-get-git-describe.sh
index 326f41a..c1a3d21 100644 (file)
@@ -21,10 +21,8 @@ if [ -z "$image_build_tag" ]
 then
     echo "git describe returned an empty value, make sure a version tag is applied"
     exit 1
-else
-    image_name="$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$image_build_tag"
 fi
-
-# Write DOCKER_IMAGE information to a file so it can be injected into the
+echo "---> Tag found: $image_build_tag"
+# Write DOCKER_IMAGE_TAG information to a file so it can be injected into the
 # environment for following steps
-echo "DOCKER_IMAGE=$image_name" >> "$WORKSPACE/env_docker_inject.txt"
+echo "DOCKER_IMAGE_TAG=$image_build_tag" >> "$WORKSPACE/env_docker_inject.txt"