diff options
| author | diogo464 <[email protected]> | 2024-10-01 16:04:03 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-10-01 16:04:03 +0100 |
| commit | ece33434ee227d864ac4b2aeecce3b8f46085567 (patch) | |
| tree | ad8b77255999779b431f657f2f21ebb8745c7465 /build.sh | |
| parent | 1422e5893b7e8563431507a2058967082ec4f4cb (diff) | |
added build files
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ffc3cde --- /dev/null +++ b/build.sh | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/usr/bin/env sh | ||
| 2 | |||
| 3 | CGO_ENABLED=0 go build . || exit 1 | ||
| 4 | docker build -t git.d464.sh/diogo464/belverde-fire -f Containerfile . || exit 1 | ||
| 5 | |||
| 6 | if [ "$PUSH" = "1" ]; then | ||
| 7 | docker push git.d464.sh/diogo464/belverde-fire | ||
| 8 | fi | ||
| 9 | |||
