summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-07-22 22:27:29 +0100
committerdiogo464 <[email protected]>2025-07-22 22:27:29 +0100
commit420fa3254eb18784fc115003bfa8953060445d74 (patch)
tree8c0b7f16b76f30dfa901fdcfb49985470f2dc89c /build.sh
parent5b2a84f71c5996399204edb3ebd4ead24f7be0bf (diff)
updated container image nameHEADmain
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
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
3IMAGE_NAME=cr.d464.sh/whoami:latest
4
3CGO_ENABLED=0 go build . || exit 1 5CGO_ENABLED=0 go build . || exit 1
4docker build -t git.d464.sh/code/whoami:latest -f Containerfile . || exit 1 6docker build -t $IMAGE_NAME -f Containerfile . || exit 1
5if [ "$PUSH" = "1" ]; then 7if [ "$PUSH" = "1" ]; then
6 docker push git.d464.sh/code/whoami:latest || exit 1 8 docker push $IMAGE_NAME || exit 1
7fi 9fi