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:
parent
9d693857bf
commit
62611b2ea8
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue