From 584d1ec1ce392f997ab1a5f11fffab71f705ec70 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 19 Mar 2020 20:39:34 +0100 Subject: [PATCH] Fixed conditional in docker build script --- scripts/docker/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker/build b/scripts/docker/build index f9bb3c27..8331532e 100755 --- a/scripts/docker/build +++ b/scripts/docker/build @@ -4,7 +4,7 @@ set -e echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin # If a tag exists, build both that tag and stable -if [[ -z $TRAVIS_TAG ]]; then +if [[ ! -z $TRAVIS_TAG ]]; then docker build --build-arg VERSION=${TRAVIS_TAG#?} -t shlinkio/shlink-web-client:${TRAVIS_TAG#?} -t shlinkio/shlink-web-client:stable . docker push shlinkio/shlink-web-client:${TRAVIS_TAG#?} docker push shlinkio/shlink-web-client:stable