Skip to content

Commit

Permalink
Merge pull request #2 from andreasfertig/pushOnlyOnMasterMerge
Browse files Browse the repository at this point in the history
Push only when merging into master branch.
  • Loading branch information
andreasfertig authored Jun 21, 2019
2 parents f902cde + 660dba1 commit d5b2d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5b2d06

Please sign in to comment.