docker latest tag not applied if regex RC matches (#1042)

f the tag matches RC dont tag as latest in docker (closes #1004)
This commit is contained in:
Russel Waters 2018-08-09 21:48:13 -04:00 committed by GitHub
commit 62611b2ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")