Permalink
Browse files

fix(docker/travis): Fix accidental push from PR branches to ohif/view…

…er:latest (closes #247) (#248)
  • Loading branch information...
swederik committed Aug 17, 2018
1 parent 4b5ea5c commit 2288b9f32d1d980a087eaaa7c40f7ed4089cfc41
Showing with 1 addition and 1 deletion.
  1. +1 −1 .travis.yml
View
@@ -32,7 +32,7 @@ jobs:
- export COMMIT=${TRAVIS_COMMIT::8}
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH ; fi`
- echo "TAG=$TAG, COMMIT=$COMMIT"
- docker pull $REPO:latest
- docker --version

0 comments on commit 2288b9f

Please sign in to comment.