Commit cb637cce authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Docker: always push a x-y-testing tag

This is interesting for uniformity when the default Heptapod series
is shifted to stable: because the x-y-testing tag already exists,
pipelines on the bumped heptapod-stable branch of heptapod-tests already
have a target.

This change will still also push a `testing` tag when building the
main `heptapod` branch.

--HG--
branch : heptapod
parent 266c4736f9a6
Pipeline #28905 failed with stages
in 45 minutes and 14 seconds
......@@ -4,16 +4,16 @@ set -e
HEPTAPOD_DOCKERHUB_IMAGE="octobus/heptapod"
HEPTAPOD_STABLE_SERIES_PREFIX=$(sed 's/^\([0-9]*\)[.]\([0-9]*\).*/\1-\2/g' HEPTAPOD_VERSION)
HEPTAPOD_TESTING_IMAGE_TAGS="$HEPTAPOD_STABLE_SERIES_PREFIX-testing"
if [ "$CI_COMMIT_HG_BRANCH" = "heptapod-stable" -o "$CI_COMMIT_HG_BRANCH" = "heptapod-oldstable" ]; then
HEPTAPOD_STABLE_SERIES_PREFIX=$(sed 's/^\([0-9]*\)[.]\([0-9]*\).*/\1-\2/g' HEPTAPOD_VERSION)
HEPTAPOD_TESTING_IMAGE_TAG="$HEPTAPOD_STABLE_SERIES_PREFIX-testing"
HEPTAPOD_LATEST_IMAGE_TAG="$HEPTAPOD_STABLE_SERIES_PREFIX-latest"
else
HEPTAPOD_TESTING_IMAGE_TAG="testing"
HEPTAPOD_TESTING_IMAGE_TAGS="testing $HEPTAPOD_TESTING_IMAGE_TAGS"
HEPTAPOD_LATEST_IMAGE_TAG="latest"
fi
HEPTAPOD_IMAGE_TAGS="$HEPTAPOD_TESTING_IMAGE_TAG $CI_COMMIT_HG_SHORT_SHA"
HEPTAPOD_IMAGE_TAGS="$HEPTAPOD_TESTING_IMAGE_TAGS $CI_COMMIT_HG_SHORT_SHA"
if [ -n "$CI_COMMIT_TAG" ]; then
RELEASE_VERSION=`echo $RELEASE_VERSION | sed s/~//g`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment