diff --git a/.travis.yml b/.travis.yml index a9ee8b4c..520d2d77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,10 @@ script: deploy: provider: script script: scripts/travis-docker-push + skip_cleanup: true on: branch: master - skip_cleanup: true + go: '1.5' + condition: "$TRAVIS_PULL_REQUEST = false" notifications: email: false \ No newline at end of file diff --git a/scripts/travis-docker-push b/scripts/travis-docker-push index 83099b24..b5551048 100755 --- a/scripts/travis-docker-push +++ b/scripts/travis-docker-push @@ -1,13 +1,8 @@ #!/bin/bash -e # Travis Deploy Docker Push -if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_GO_VERSION" == "1.5" ]]; then - ./build - docker info - ./docker-build - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p=$DOCKER_PASSWORD quay.io - ./docker-push -else - echo "Skipping Docker image push." - echo "PR: $TRAVIS_PULL_REQUEST Go: $TRAVIS_GO_VERSION" -fi \ No newline at end of file +./build +docker info +./docker-build +docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p=$DOCKER_PASSWORD quay.io +./docker-push