Fix docker push with new incremental tags pt. 2

This commit is contained in:
Sandro Jäckel 2019-07-06 17:26:15 +02:00
parent 06729a6097
commit fe9875343f
No known key found for this signature in database
GPG Key ID: 236B6291555E8401

View File

@ -23,7 +23,7 @@ else
if [[ $TRAVIS_BRANCH == master ]] || [[ $TRAVIS_BRANCH == "$VERSION" ]]; then
TAGS="$DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT"
# we are on an incremental build of a tag
elif [[ $TRAVIS_BRANCH == "${VERSION%-*}" ]]; then
elif [[ $VERSION == "${TRAVIS_BRANCH%-*}" ]]; then
TAGS="$DOCKER_REPO:$TRAVIS_BRANCH -t $DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT"
# we build a other branch than master
elif [[ -n $TRAVIS_BRANCH ]]; then