Skip to content

Commit

Permalink
Publis hotrod only when TRAVIS_SECURE_ENV_VARS is true
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay committed Mar 22, 2018
1 parent 5c09726 commit 67c8af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/travis/hotrod-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ docker rm -f $CID

BRANCH=${BRANCH:?'missing BRANCH env var'}
# Only push images to Docker Hub for master branch or for release tags vM.N.P
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
echo "upload to Docker Hub, BRANCH=$BRANCH"
else
echo "skip Docker upload, only allowed for tagged releases or master (latest tag)"
Expand Down

0 comments on commit 67c8af6

Please sign in to comment.