From 94f7d8fef60263784c134f5df3e12619c04e4892 Mon Sep 17 00:00:00 2001 From: Zopanix Date: Tue, 20 Sep 2016 13:41:23 -0400 Subject: [PATCH] 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 --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4cea0045..a96ff5ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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"