From 0164e14f4bf90aa47bd25ab28de05c11a4c08d6a Mon Sep 17 00:00:00 2001 From: Nikita Savchenko Date: Thu, 3 Dec 2020 15:34:10 +0200 Subject: [PATCH] Update build.sh --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 59b9fda..123c564 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,7 @@ #!/bin/sh +# Usage: ./build.sh 1.0.9 + HUB=zitros/analytics-saviour docker build --rm -t image . @@ -10,4 +12,8 @@ if [ $# -eq 1 ] fi docker tag image $HUB:latest -docker push $HUB \ No newline at end of file +docker push $HUB:latest +if [ $# -eq 1 ] + then + docker push $HUB:$1 +fi \ No newline at end of file