Skip to content

Commit

Permalink
Merge pull request #12 from jdkent/fix_deply
Browse files Browse the repository at this point in the history
[FIX] add missing tag step
  • Loading branch information
jdkent authored Apr 15, 2020
2 parents 9bccc2f + a775067 commit e441d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker_push.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
# if tag is defined
if [[ ! -z "$TRAVIS_TAG" ]]; then
docker tag hbclab/accel-bids:latest hbclab/accel-bids:$TRAVIS_TAG
docker push hbclab/accel-bids:$TRAVIS_TAG
# if the build is on the master branch
elif [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker tag hbclab/accel-bids:latest hbclab/accel-bids:unstable
docker push hbclab/accel-bids:unstable
else
echo "This build is not on the master branch or a tagged release"
Expand Down

0 comments on commit e441d5a

Please sign in to comment.