Skip to content

Commit 7db44ab

Browse files
authored
Merge pull request #33 from zopanix/fix_travis
Trying to fix master build of the travis CI
2 parents 0284fcf + 94f7d8f commit 7db44ab

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)