Skip to content

Commit

Permalink
fix docker tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Jan 11, 2017
1 parent 9725074 commit 9f98651
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ deploy:
after_deploy:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=gettyimages/marathon_exporter
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:latest
- docker build -f Dockerfile -t $REPO:$TRAVIS_TAG .
- docker push $REPO:$TRAVIS_TAG
- docker tag $REPO:$TRAVIS_TAG $REPO:latest
- docker push $REPO:latest

env:
Expand Down

0 comments on commit 9f98651

Please sign in to comment.