We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0284fcf + 94f7d8f commit 7db44abCopy full SHA for 7db44ab
.travis.yml
@@ -5,7 +5,11 @@ before_install:
5
# see https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
6
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
7
script:
8
- - docker build -t "zopanix/factorio:${TRAVIS_TAG}" .
+ - |
9
+ if [ -z "$TRAVIS_TAG" ]; then
10
+ TRAVIS_TAG="latest"
11
+ fi
12
+ docker build -t "zopanix/factorio:${TRAVIS_TAG}" .
13
deploy:
14
provider: script
15
script: docker tag "zopanix/factorio:${TRAVIS_TAG}" "zopanix/factorio:latest" && docker push "zopanix/factorio:${TRAVIS_TAG}" && docker push "zopanix/factorio:latest"
0 commit comments