From aed957a8969e0580c1c3062fb4108f6eea743445 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 17 Feb 2018 02:15:20 +0300 Subject: [PATCH] Fix latest tag condition --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d6fcf63..ef28f2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: - docker build -t 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 push elyby/chrly:latest fi