Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Skip docker push for external PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlodge authored Jul 17, 2020
1 parent 23a9507 commit 8821226
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ script:

after_success:
- set -e;
- if [ -z "$DOCKER_PASS" ] ; then
echo "This is a build triggered by an external PR. Skipping docker push.";
exit 0;
fi;
- docker login -u $DOCKER_USER -p $DOCKER_PASS;
- ./scripts/push.sh
notifications:
Expand Down

0 comments on commit 8821226

Please sign in to comment.