Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Dec 3, 2020
1 parent 1492cb3 commit 0164e14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

# Usage: ./build.sh 1.0.9

HUB=zitros/analytics-saviour

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

docker push $HUB
docker push $HUB:latest
if [ $# -eq 1 ]
then
docker push $HUB:$1
fi

0 comments on commit 0164e14

Please sign in to comment.