X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdocker-get-container-tag.sh;h=f0e7d43cc736f6e8339d053e7aadb35275bdc036;hb=a5fa8a32ab2f856fecc7505fdfd7a8e12df2c402;hp=df3f8ce435ad44ac39f905379cf4b8034a48eab7;hpb=6395c750c697b28489dc74b44abba0183cf83117;p=releng%2Fglobal-jjb.git diff --git a/shell/docker-get-container-tag.sh b/shell/docker-get-container-tag.sh index df3f8ce4..f0e7d43c 100644 --- a/shell/docker-get-container-tag.sh +++ b/shell/docker-get-container-tag.sh @@ -18,9 +18,16 @@ echo "---> docker-get-container-tag.sh" set -feu -o pipefail +# shellcheck disable=SC1090 +. ~/lf-env.sh + +lf-activate-venv --python python3 yq + tag="" if [[ $CONTAINER_TAG_METHOD == "latest" ]]; then tag="latest" +elif [[ $CONTAINER_TAG_METHOD == "stream" ]]; then + tag="$STREAM" elif [[ $CONTAINER_TAG_METHOD == "git-describe" ]]; then tag=$(git describe) elif [[ $CONTAINER_TAG_METHOD == "yaml-file" ]]; then