diff --git a/docker_push.sh b/docker_push.sh index 02a6ae6..b149d8e 100644 --- a/docker_push.sh +++ b/docker_push.sh @@ -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"