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