diff --git a/.travis.yml b/.travis.yml index 72c8c15..cfc10d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ script: - make build - docker images - | - if [[ "${TRAVIS_BRANCH}" = "master" ]]; then + if [[ "${TRAVIS_BRANCH}" = "master" ]] && [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker tag cppinsights-webfrontend $DOCKER_USERNAME/cppinsights-webfrontend docker push $DOCKER_USERNAME/cppinsights-webfrontend