X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdocker-get-git-describe.sh;h=c1a3d21e06d2302638dea0e242f8ea288be0401c;hb=refs%2Ftags%2Fv0.38.1;hp=326f41a3527c276bcf2a20b1fdf7639c5fad57be;hpb=5113d3c9d84c3e4237e3c2fa0f616bdfcb2a6d15;p=releng%2Fglobal-jjb.git diff --git a/shell/docker-get-git-describe.sh b/shell/docker-get-git-describe.sh index 326f41a3..c1a3d21e 100644 --- a/shell/docker-get-git-describe.sh +++ b/shell/docker-get-git-describe.sh @@ -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"