Push git tags to dockerhub as docker tags

This commit is contained in:
Øyvind Ingebrigtsen Øvergaard 2016-11-11 20:32:05 +01:00
parent 3a006f7bcb
commit 60fc33ebdf
1 changed files with 1 additions and 1 deletions

View File

@ -18,4 +18,4 @@ script:
after_success:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- |-
[ "$TRAVIS_BRANCH" == "master" ] && docker push $DOCKER_REPO:$TAG
[ "$TRAVIS_BRANCH" == "master" ] || (! [ -z "$TRAVIS_TAG" ] && [ "$TRAVIS_TAG" == "$TAG" ]) && docker push $DOCKER_REPO:$TAG