We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c09726 commit 37e6430Copy full SHA for 37e6430
scripts/travis/hotrod-integration-test.sh
@@ -20,7 +20,7 @@ docker rm -f $CID
20
21
BRANCH=${BRANCH:?'missing BRANCH env var'}
22
# Only push images to Docker Hub for master branch or for release tags vM.N.P
23
-if [[ "$BRANCH" == "master" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+if [[ ("$BRANCH" == "master" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$) && "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then
24
echo "upload to Docker Hub, BRANCH=$BRANCH"
25
else
26
echo "skip Docker upload, only allowed for tagged releases or master (latest tag)"
0 commit comments