1 files changed, 4 insertions, 2 deletions
|
diff --git a/build.sh b/build.sh index 4ade9b4..4f75a5f 100755 --- a/ build.sh+++ b/ build.sh |
| @@ -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 | |
|