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