From e16b111c0bc7b5234d3b2b23ddbf2c017ba283b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 18 May 2019 14:01:22 +0200 Subject: [PATCH] CI: Tag Docker Image with $VERSION_SHORT on git tag building --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 569dd17..a6f14a4 100755 --- a/build.sh +++ b/build.sh @@ -19,7 +19,7 @@ DOCKER_REPO=factoriotools/factorio if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then TAGS="$DOCKER_REPO:$TRAVIS_PULL_REQUEST_SLUG" else - if [ "$TRAVIS_BRANCH" == "master" ]; then + if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "$VERSION" ]; then TAGS="$DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT" elif [ -n "$TRAVIS_BRANCH" ]; then TAGS="$DOCKER_REPO:$TRAVIS_BRANCH"