summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index e39ad0d..5b6bd65 100755
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,9 @@
1#!/usr/bin/sh 1#!/usr/bin/sh
2 2
3IMAGE_NAME=cr.d464.sh/whoami:latest
4
3CGO_ENABLED=0 go build . || exit 1 5CGO_ENABLED=0 go build . || exit 1
4docker build -t git.d464.sh/code/whoami:latest -f Containerfile . || exit 1 6docker build -t $IMAGE_NAME -f Containerfile . || exit 1
5if [ "$PUSH" = "1" ]; then 7if [ "$PUSH" = "1" ]; then
6 docker push git.d464.sh/code/whoami:latest || exit 1 8 docker push $IMAGE_NAME || exit 1
7fi 9fi