CI: Tag Docker Image with $VERSION_SHORT on git tag building

This commit is contained in:
Sandro Jäckel 2019-05-18 14:01:22 +02:00
parent 09e1ad2045
commit e16b111c0b
No known key found for this signature in database
GPG Key ID: 236B6291555E8401

View File

@ -19,7 +19,7 @@ DOCKER_REPO=factoriotools/factorio
if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
TAGS="$DOCKER_REPO:$TRAVIS_PULL_REQUEST_SLUG" TAGS="$DOCKER_REPO:$TRAVIS_PULL_REQUEST_SLUG"
else else
if [ "$TRAVIS_BRANCH" == "master" ]; then if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "$VERSION" ]; then
TAGS="$DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT" TAGS="$DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT"
elif [ -n "$TRAVIS_BRANCH" ]; then elif [ -n "$TRAVIS_BRANCH" ]; then
TAGS="$DOCKER_REPO:$TRAVIS_BRANCH" TAGS="$DOCKER_REPO:$TRAVIS_BRANCH"