Skip to content

Commit

Permalink
travis: run docker push on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Apr 9, 2018
1 parent bfadcf4 commit 1e9525f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- if [ -n "$TRAVIS_TAG" ]; then make TAG=$TRAVIS_TAG push; else make push; fi
go: "1.10.x"
if: (NOT type IN (pull_request)) AND (branch = master)
if: (NOT type IN (pull_request)) AND (branch = master) OR (tag IS present)
- stage: push to packagecloud
script:
- if [ -n "$TRAVIS_TAG" ]; then curl -sL https://raw.githubusercontent.com/tsuru/push-to-packagecloud/master/push.sh | PACKAGE_NAME=deploy-agent bash; fi
Expand Down

0 comments on commit 1e9525f

Please sign in to comment.