1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

tagging and pushing

This commit is contained in:
Kyle Spearrin 2017-10-02 16:20:04 -04:00
parent 54759c2141
commit b77adedcbe

View File

@ -8,20 +8,12 @@ echo ""
if [ $# -gt 0 -a "$1" == "push" ] if [ $# -gt 0 -a "$1" == "push" ]
then then
echo "Pushing bitwarden" echo "Pushing bitwarden"
echo "==================" echo "================="
if [ $# -gt 1 ] if [ $# -gt 1 ]
then then
TAG=$2 TAG=$2
docker tag api bitwarden/api:$TAG
docker tag identity bitwarden/identity:$TAG
docker tag server bitwarden/server:$TAG
docker tag attachments bitwarden/attachments:$TAG
docker tag nginx bitwarden/nginx:$TAG
docker tag mssql bitwarden/mssql:$TAG
docker tag setup bitwarden/setup:$TAG
docker push bitwarden/api:$TAG docker push bitwarden/api:$TAG
docker push bitwarden/identity:$TAG docker push bitwarden/identity:$TAG
docker push bitwarden/server:$TAG docker push bitwarden/server:$TAG
@ -38,6 +30,20 @@ then
docker push bitwarden/mssql docker push bitwarden/mssql
docker push bitwarden/setup docker push bitwarden/setup
fi fi
elif [ $# -gt 1 -a "$1" == "tag" ]
then
TAG=$2
echo "Tagging bitwarden as '$TAG'"
echo "==========================="
docker tag bitwarden/api bitwarden/api:$TAG
docker tag bitwarden/identity bitwarden/identity:$TAG
docker tag bitwarden/server bitwarden/server:$TAG
docker tag bitwarden/attachments bitwarden/attachments:$TAG
docker tag bitwarden/nginx bitwarden/nginx:$TAG
docker tag bitwarden/mssql bitwarden/mssql:$TAG
docker tag bitwarden/setup bitwarden/setup:$TAG
else else
echo "Building bitwarden" echo "Building bitwarden"
echo "==================" echo "=================="