diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 7 |
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 | |||
| 3 | CGO_ENABLED=0 go build . || exit 1 | ||
| 4 | docker build -t git.d464.sh/code/whoami:latest -f Containerfile . || exit 1 | ||
| 5 | if [ "$PUSH" = "1" ]; then | ||
| 6 | docker push git.d464.sh/code/whoami:latest || exit 1 | ||
| 7 | fi | ||
