mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-12-11 18:41:12 -06:00
Fixed conditional in docker build script
This commit is contained in:
parent
2ca7faa457
commit
584d1ec1ce
@ -4,7 +4,7 @@ set -e
|
|||||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
|
||||||
# If a tag exists, build both that tag and stable
|
# 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 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:${TRAVIS_TAG#?}
|
||||||
docker push shlinkio/shlink-web-client:stable
|
docker push shlinkio/shlink-web-client:stable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user