diff options
| author | diogo464 <[email protected]> | 2025-07-22 22:20:40 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-07-22 22:20:40 +0100 |
| commit | 71930f5193c5a778e0ee5650b26f648f308ea319 (patch) | |
| tree | f0954a8e394babd33f94f7879cb00dafa8fd8f5f /build.sh | |
| parent | eabeca13fc9c57833c9d729ba8d0950da2f07806 (diff) | |
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -1,9 +1,11 @@ | |||
| 1 | #!/usr/bin/env sh | 1 | #!/usr/bin/env sh |
| 2 | 2 | ||
| 3 | IMAGE_NAME=cr.d464.sh/belverde-fire:latest | ||
| 4 | |||
| 3 | go build . || exit 1 | 5 | go build . || exit 1 |
| 4 | docker build -t git.d464.sh/diogo464/belverde-fire -f Containerfile . || exit 1 | 6 | docker build -t $IMAGE_NAME -f Containerfile . || exit 1 |
| 5 | 7 | ||
| 6 | if [ "$PUSH" = "1" ]; then | 8 | if [ "$PUSH" = "1" ]; then |
| 7 | docker push git.d464.sh/diogo464/belverde-fire | 9 | docker push $IMAGE_NAME |
| 8 | fi | 10 | fi |
| 9 | 11 | ||
