Skip to content

Commit

Permalink
Merge pull request #529 from aaronweaver/master
Browse files Browse the repository at this point in the history
Adding version to docker hub.
  • Loading branch information
aaronweaver authored Mar 26, 2018
2 parents a87fcb9 + f0c1fb8 commit c736df3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ script:
esac
after_success:
#Push to docker repo only if branch is master and this is a release
- docker tag $REPO $REPO:$TRAVIS_TAG
#Push to docker repo
- |
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_TAG" != "" ] && [ "$TEST" == "integration-test" ] && [ "$DOCKER_USER" != "" ] && [ "$DOCKER_PASS" != "" ]; then
docker tag $REPO $REPO:$TAG
docker tag $REPO $REPO:$TRAVIS_TAG
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS";
docker push $REPO ;
fi
Expand Down

0 comments on commit c736df3

Please sign in to comment.