Skip to content

Commit 94f7d8f

Browse files
committed
Trying to fix master build of the travis CI
This was caused because when building on master, the travis_tag variable is empty, causing the build to fail
1 parent 0284fcf commit 94f7d8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ before_install:
55
# see https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
66
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
77
script:
8-
- docker build -t "zopanix/factorio:${TRAVIS_TAG}" .
8+
- |
9+
if [ -z "$TRAVIS_TAG" ]; then
10+
TRAVIS_TAG="latest"
11+
fi
12+
docker build -t "zopanix/factorio:${TRAVIS_TAG}" .
913
deploy:
1014
provider: script
1115
script: docker tag "zopanix/factorio:${TRAVIS_TAG}" "zopanix/factorio:latest" && docker push "zopanix/factorio:${TRAVIS_TAG}" && docker push "zopanix/factorio:latest"

0 commit comments

Comments
 (0)