mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-07 11:17:23 +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
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user