X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdocker-get-yaml-tag.sh;h=8b0e16ee424afe4b619d8cc94053671b46dee4bb;hb=40dcef755655b17e307a7b2a7c0b868937b1c93c;hp=2a1bbdc6da066c6fadc26a340a9ec1ecb27c73fa;hpb=4b60fcf6a28e6f840dbf7b7952bc75dfc4b65c3d;p=releng%2Fglobal-jjb.git diff --git a/shell/docker-get-yaml-tag.sh b/shell/docker-get-yaml-tag.sh index 2a1bbdc6..8b0e16ee 100644 --- a/shell/docker-get-yaml-tag.sh +++ b/shell/docker-get-yaml-tag.sh @@ -18,12 +18,12 @@ container_tag_file=container-tag.yaml if [ -f "$container_tag_file" ] then - image_name=$(yq -r .tag "$container_tag_file") + image_build_tag=$(yq -r .tag "$container_tag_file") else echo "$container_tag_file file not found. Make sure this file exists." exit 1 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"