From bfadcf403a5cd33bc68887d21fcef4bcf128990c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carvalho?= Date: Mon, 9 Apr 2018 11:06:10 -0300 Subject: [PATCH] travis: fix docker push conditional --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c8ee40c..6710be8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: