Skip to content

Commit ff3ef88

Browse files
committed
hotfix for travis deploy
1 parent 845b120 commit ff3ef88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ deploy:
1313
provider: script
1414
script: bash docker_push.sh
1515
on:
16-
branch: master
17-
tags: true
16+
all_branches: true

docker_push.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
22
# if tag is defined
3-
if [[ ! -z "$TRAVIS_TAG"]]; then
3+
if [[ ! -z "$TRAVIS_TAG" ]]; then
44
docker push hbclab/accel-bids:$TRAVIS_TAG
55
# if the build is on the master branch
66
elif [[ "$TRAVIS_BRANCH" == "master" ]]; then
77
docker push hbclab/accel-bids:unstable
88
else
99
echo "This build is not on the master branch or a tagged release"
10+
fi

0 commit comments

Comments
 (0)