1 files changed, 4 insertions, 2 deletions
|
diff --git a/build.sh b/build.sh index e39ad0d..5b6bd65 100755 --- a/ build.sh+++ b/ build.sh |
| @@ -1,7 +1,9 @@ |
| 1 | #!/usr/bin/sh |
1 | #!/usr/bin/sh |
| 2 | |
2 | |
| |
3 | IMAGE_NAME=cr.d464.sh/whoami:latest |
| |
4 | |
| 3 | CGO_ENABLED=0 go build . || exit 1 |
5 | CGO_ENABLED=0 go build . || exit 1 |
| 4 | docker build -t git.d464.sh/code/whoami:latest -f Containerfile . || exit 1 |
6 | docker build -t $IMAGE_NAME -f Containerfile . || exit 1 |
| 5 | if [ "$PUSH" = "1" ]; then |
7 | if [ "$PUSH" = "1" ]; then |
| 6 | docker push git.d464.sh/code/whoami:latest || exit 1 |
8 | docker push $IMAGE_NAME || exit 1 |
| 7 | fi |
9 | fi |
|