mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
15 lines
522 B
Text
15 lines
522 B
Text
|
#!/bin/bash
|
||
|
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
|
||
|
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
|
||
|
fi
|
||
|
|
||
|
docker build -t shlinkio/shlink-web-client:latest .
|
||
|
docker push shlinkio/shlink-web-client:latest
|