Skip to content

Commit 0164e14

Browse files
Update build.sh
1 parent 1492cb3 commit 0164e14

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
# Usage: ./build.sh 1.0.9
4+
35
HUB=zitros/analytics-saviour
46

57
docker build --rm -t image .
@@ -10,4 +12,8 @@ if [ $# -eq 1 ]
1012
fi
1113
docker tag image $HUB:latest
1214

13-
docker push $HUB
15+
docker push $HUB:latest
16+
if [ $# -eq 1 ]
17+
then
18+
docker push $HUB:$1
19+
fi

0 commit comments

Comments
 (0)