mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-03 14:57:22 +03:00
Avoid latest docker to be build when building a tag
This commit is contained in:
parent
a9653b3674
commit
79ccef9f7e
1 changed files with 2 additions and 3 deletions
|
@ -5,10 +5,9 @@ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
|
||||||
if [[ -z $TRAVIS_TAG ]]; then
|
if [[ -z $TRAVIS_TAG ]]; then
|
||||||
docker build -t shlinkio/shlink-web-client:latest .
|
docker build -t shlinkio/shlink-web-client:latest .
|
||||||
|
docker push shlinkio/shlink-web-client:latest
|
||||||
else
|
else
|
||||||
docker build --build-arg VERSION=${TRAVIS_TAG#?} -t shlinkio/shlink-web-client:${TRAVIS_TAG#?} -t shlinkio/shlink-web-client:stable -t shlinkio/shlink-web-client:latest .
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker push shlinkio/shlink-web-client:latest
|
|
||||||
|
|
Loading…
Reference in a new issue