Skip to content

Commit 37e6430

Browse files
pavolloffayyurishkuro
authored andcommitted
Publis hotrod only when TRAVIS_SECURE_ENV_VARS is true (#753)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
1 parent 5c09726 commit 37e6430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/travis/hotrod-integration-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ docker rm -f $CID
2020

2121
BRANCH=${BRANCH:?'missing BRANCH env var'}
2222
# 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
23+
if [[ ("$BRANCH" == "master" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$) && "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then
2424
echo "upload to Docker Hub, BRANCH=$BRANCH"
2525
else
2626
echo "skip Docker upload, only allowed for tagged releases or master (latest tag)"

0 commit comments

Comments
 (0)