Fix latest tag condition

This commit is contained in:
ErickSkrauch 2018-02-17 02:15:20 +03:00
parent 2cd97dda8b
commit aed957a896
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} ]; then if [ ! -z ${TRAVIS_TAG+x} ] && [ "$TRAVIS_BRANCH" == "master" ]; 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