Skip to content

Commit

Permalink
Trying to fix master build of the travis CI
Browse files Browse the repository at this point in the history
This was caused because when building on master, the travis_tag variable is empty, causing the build to fail
  • Loading branch information
zopanix committed Sep 20, 2016
1 parent 0284fcf commit 94f7d8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ before_install:
# see https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
script:
- docker build -t "zopanix/factorio:${TRAVIS_TAG}" .
- |
if [ -z "$TRAVIS_TAG" ]; then
TRAVIS_TAG="latest"
fi
docker build -t "zopanix/factorio:${TRAVIS_TAG}" .
deploy:
provider: script
script: docker tag "zopanix/factorio:${TRAVIS_TAG}" "zopanix/factorio:latest" && docker push "zopanix/factorio:${TRAVIS_TAG}" && docker push "zopanix/factorio:latest"
Expand Down

0 comments on commit 94f7d8f

Please sign in to comment.