diff --git a/.travis.yml b/.travis.yml index 76de489d9..c8b4aa817 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,7 +54,7 @@ after_success: docker push $REPO:$TRAVIS_TAG; echo "Pushed to" $REPO:$TRAVIS_TAG; AUTO_DEPLOY=true; - elif [ "$TRAVIS_BRANCH" == "master" ]; then + elif [ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]; then docker build -f Dockerfile -t $REPO .; docker push $REPO; echo "Pushed to" $REPO;