Fix latest tag condition

This commit is contained in:
ErickSkrauch 2018-02-17 02:21:03 +03:00
parent aed957a896
commit 9fc6ca54d9
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -35,7 +35,7 @@ jobs:
- docker build -t elyby/chrly:$DOCKER_TAG . - docker build -t elyby/chrly:$DOCKER_TAG .
- docker push elyby/chrly:$DOCKER_TAG - docker push elyby/chrly:$DOCKER_TAG
- | - |
if [ ! -z ${TRAVIS_TAG+x} ] && [ "$TRAVIS_BRANCH" == "master" ]; then if [ ! -z ${TRAVIS_TAG+x} ] && [[ "$TRAVIS_TAG" != *"-"* ]]; then
docker tag elyby/chrly:$DOCKER_TAG elyby/chrly:latest docker tag elyby/chrly:$DOCKER_TAG elyby/chrly:latest
docker push elyby/chrly:latest docker push elyby/chrly:latest
fi fi