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"