Skip to content

Commit a775067

Browse files
committed
add missing tag step
1 parent ff3ef88 commit a775067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker_push.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
22
# if tag is defined
33
if [[ ! -z "$TRAVIS_TAG" ]]; then
4+
docker tag hbclab/accel-bids:latest hbclab/accel-bids:$TRAVIS_TAG
45
docker push hbclab/accel-bids:$TRAVIS_TAG
56
# if the build is on the master branch
67
elif [[ "$TRAVIS_BRANCH" == "master" ]]; then
8+
docker tag hbclab/accel-bids:latest hbclab/accel-bids:unstable
79
docker push hbclab/accel-bids:unstable
810
else
911
echo "This build is not on the master branch or a tagged release"

0 commit comments

Comments
 (0)