Fix docker latest tag deploy
Turns out Travis sets both TRAVIS_TAG and TRAVIS_BRANCH when building a tag.
This commit is contained in:
parent
0591504a0e
commit
a22ceb5f7b
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
set -e
|
||||
|
||||
scripts="$(dirname "$0")"
|
||||
|
||||
|
@ -9,10 +9,10 @@ docker login -u nanocurrency -p "$DOCKER_PASSWORD"
|
|||
"$scripts"/custom-timeout.sh 30 docker push nanocurrency/nano-ci
|
||||
|
||||
tags=()
|
||||
if [ -n "$TRAVIS_BRANCH" ]; then
|
||||
tags+=("$TRAVIS_BRANCH")
|
||||
elif [ -n "$TRAVIS_TAG" ]; then
|
||||
if [ -n "$TRAVIS_TAG" ]; then
|
||||
tags+=("$TRAVIS_TAG" latest)
|
||||
elif [ -n "$TRAVIS_BRANCH" ]; then
|
||||
tags+=("$TRAVIS_BRANCH")
|
||||
fi
|
||||
|
||||
for network in live beta; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue