1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

adjusted build script

This commit is contained in:
Kyle Spearrin
2017-10-04 16:16:22 -04:00
parent e3f12c46c3
commit 23eb24c2bc
2 changed files with 13 additions and 24 deletions

View File

@ -5,31 +5,20 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo ""
if [ $# -gt 0 -a "$1" == "push" ]
if [ $# -gt 1 -a "$1" == "push" ]
then
echo "Pushing bitwarden"
echo "================="
TAG=$2
echo "Pushing bitwarden ($TAG)"
echo "========================"
if [ $# -gt 1 ]
then
TAG=$2
docker push bitwarden/api:$TAG
docker push bitwarden/identity:$TAG
docker push bitwarden/server:$TAG
docker push bitwarden/attachments:$TAG
docker push bitwarden/nginx:$TAG
docker push bitwarden/mssql:$TAG
docker push bitwarden/setup:$TAG
else
docker push bitwarden/api
docker push bitwarden/identity
docker push bitwarden/server
docker push bitwarden/attachments
docker push bitwarden/nginx
docker push bitwarden/mssql
docker push bitwarden/setup
fi
docker push bitwarden/api:$TAG
docker push bitwarden/identity:$TAG
docker push bitwarden/server:$TAG
docker push bitwarden/attachments:$TAG
docker push bitwarden/nginx:$TAG
docker push bitwarden/mssql:$TAG
docker push bitwarden/setup:$TAG
elif [ $# -gt 1 -a "$1" == "tag" ]
then
TAG=$2