Fixed condition when to publish the latest tag to docker hub

This commit is contained in:
ErickSkrauch 2020-04-23 21:00:19 +03:00
parent bc2f9564d0
commit 15c6816813
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

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