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" }