From 36e5449517dd4dcf845d14e66274eee6c67a515a Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Fri, 22 Dec 2023 15:26:39 +0800 Subject: [PATCH] chore: update build_image.sh: also push latest images --- build_image.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build_image.sh b/build_image.sh index 4f41294..5d104a0 100755 --- a/build_image.sh +++ b/build_image.sh @@ -24,7 +24,7 @@ function push_base() { function build_server() { log_info "[+] Building Server" - $DOCKER build -t "git.0x7f.app/woj/woj-server:$VERSION" -f Server.Dockerfile . || + $DOCKER build -t "git.0x7f.app/woj/woj-server:latest" -f Server.Dockerfile . || (log_error "[!] Failed to build Server" && exit 1) } @@ -34,18 +34,22 @@ function build_runner() { --cap-add=sys_admin,mknod \ --device=/dev/fuse \ --security-opt label=disable \ - -t "git.0x7f.app/woj/woj-runner:$VERSION" \ + -t "git.0x7f.app/woj/woj-runner:latest" \ -f Runner.Dockerfile . || (log_error "[!] Failed to build Runner" && exit 1) } function push_server() { log_info "[+] Pushing Server Images" + $DOCKER push "git.0x7f.app/woj/woj-server:latest" + $DOCKER tag "git.0x7f.app/woj/woj-server:latest" "git.0x7f.app/woj/woj-server:$VERSION" $DOCKER push "git.0x7f.app/woj/woj-server:$VERSION" } function push_runner() { log_info "[+] Pushing Runner Images" + $DOCKER push "git.0x7f.app/woj/woj-runner:latest" + $DOCKER tag "git.0x7f.app/woj/woj-runner:latest" "git.0x7f.app/woj/woj-runner:$VERSION" $DOCKER push "git.0x7f.app/woj/woj-runner:$VERSION" }