CI: simplify logic

This commit is contained in:
Sandro Jäckel 2020-05-18 02:43:06 +02:00
parent 4c47dbc4ee
commit 4e261043cd
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -78,7 +78,7 @@ if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ ${TR
# push an incremental tag # push an incremental tag
if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then
docker push "$DOCKER_REPO:$TRAVIS_BRANCH" docker push "$DOCKER_REPO:$VERSION"
fi fi
if [[ -n ${TRAVIS_TAG:-} ]] || [[ -z ${CI:-} ]]; then if [[ -n ${TRAVIS_TAG:-} ]] || [[ -z ${CI:-} ]]; then