From b77adedcbec15bacb36e88a0c1b2617b7e667693 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 2 Oct 2017 16:20:04 -0400 Subject: [PATCH] tagging and pushing --- build.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index 7091ef863..c73dcaff1 100644 --- a/build.sh +++ b/build.sh @@ -8,20 +8,12 @@ echo "" if [ $# -gt 0 -a "$1" == "push" ] then echo "Pushing bitwarden" - echo "==================" + echo "=================" if [ $# -gt 1 ] then 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/identity:$TAG docker push bitwarden/server:$TAG @@ -38,6 +30,20 @@ then docker push bitwarden/mssql docker push bitwarden/setup 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 echo "Building bitwarden" echo "=================="