From 62611b2ea87df04d701a29199b2d8bfee24018bf Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Thu, 9 Aug 2018 21:48:13 -0400 Subject: [PATCH] docker latest tag not applied if regex RC matches (#1042) f the tag matches RC dont tag as latest in docker (closes #1004) --- ci/deploy-docker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/deploy-docker.sh b/ci/deploy-docker.sh index bf6ab6c5..323326ff 100755 --- a/ci/deploy-docker.sh +++ b/ci/deploy-docker.sh @@ -11,7 +11,9 @@ if [ "$TRAVIS_BRANCH" = "master" ]; then fi tags=() -if [ -n "$TRAVIS_TAG" ]; then +if [[ "${TRAVIS_TAG}" =~ 'RC' ]]; then + tags+=("$TRAVIS_TAG") +elif [ -n "$TRAVIS_TAG" ]; then tags+=("$TRAVIS_TAG" latest) elif [ -n "$TRAVIS_BRANCH" ]; then tags+=("$TRAVIS_BRANCH")