We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27847f commit 542680cCopy full SHA for 542680c
build/travis-deploy.sh
@@ -5,6 +5,10 @@ set -o pipefail
5
# Pull Request image tag format: PR00
6
if [ "${TRAVIS_EVENT_TYPE}" = "pull_request" ]; then
7
PR_USER=$(echo "$TRAVIS_PULL_REQUEST_SLUG" | sed -e 's/\/.*//')
8
+ if [ "$PR_USER" != "cloudnativelabs" ]; then
9
+ echo "Not building/pushing PR $TRAVIS_PULL_REQUEST since only the cloudnativelabs user can access docker hub credentials"
10
+ exit 0
11
+ fi
12
echo "Building/pushing PR$TRAVIS_PULL_REQUEST from $PR_USER"
13
make push IMG_TAG="PR$TRAVIS_PULL_REQUEST"
14
exit 0
0 commit comments