If container-tag-method: stream, docker jobs will
use the value of the variable stream as docker tag.
Issue: IT-20480
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: Ib595b6bf9439a45985cc41233f588cb0e56b7920
If ``container-tag-method: latest``, uses the literal string ``latest``.
+If ``container-tag-method: stream``, uses the value of the variable ``stream``.
+
If ``container-tag-method: git-describe``, reads the tag from the
``git describe`` command on the repository, which requires that the repository
has a git tag. For example, if the most recent tag is 'v0.48.1', this
--- /dev/null
+---
+fixes:
+ - |
+ Optionally get docker container tag to be set to the value of *stream*.
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