Skip to content

Commit e441d5a

Browse files
authored
Merge pull request #12 from jdkent/fix_deply
[FIX] add missing tag step
2 parents 9bccc2f + a775067 commit e441d5a

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)