2020-03-19 22:04:21 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
|
|
|
|
2020-03-20 09:12:07 +03:00
|
|
|
if [[ -z $TRAVIS_TAG ]]; then
|
|
|
|
docker build -t shlinkio/shlink-web-client:latest .
|
2020-03-21 08:59:37 +03:00
|
|
|
docker push shlinkio/shlink-web-client:latest
|
2020-03-20 09:12:07 +03:00
|
|
|
else
|
2020-03-21 08:59:37 +03:00
|
|
|
docker build --build-arg VERSION=${TRAVIS_TAG#?} -t shlinkio/shlink-web-client:${TRAVIS_TAG#?} -t shlinkio/shlink-web-client:stable .
|
2020-03-19 22:04:21 +03:00
|
|
|
docker push shlinkio/shlink-web-client:${TRAVIS_TAG#?}
|
|
|
|
docker push shlinkio/shlink-web-client:stable
|
|
|
|
fi
|