mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-25 02:18:22 +01:00
CI: Tag Docker Image with $VERSION_SHORT on git tag building
This commit is contained in:
parent
09e1ad2045
commit
e16b111c0b
2
build.sh
2
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"
|
||||
|
Loading…
Reference in New Issue
Block a user