From 882122634345c9995234208748958ae1c4b2acae Mon Sep 17 00:00:00 2001 From: Mathew Lodge <2354066+mjlodge@users.noreply.github.com> Date: Fri, 17 Jul 2020 15:23:33 +0100 Subject: [PATCH] Skip docker push for external PRs --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index da288e827..b876cf04d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: