Skip to content

Commit

Permalink
travis: fix docker push conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Apr 9, 2018
1 parent 7a81c28 commit bfadcf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ 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: branch = master AND NOT type = pull_request
if: (NOT type IN (pull_request)) AND (branch = master)
- stage: push to packagecloud
script:
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
go: "1.10.x"
env:
- GOARCH=amd64
env:
- GOARCH=amd64
- GO_FOR_RELEASE=1.10
if: tag IS present
matrix:
Expand Down

0 comments on commit bfadcf4

Please sign in to comment.