diff --git a/build_image.sh b/build_image.sh index 97d5b59..37c7124 100755 --- a/build_image.sh +++ b/build_image.sh @@ -10,9 +10,9 @@ function build_base() { log_info "[+] Building Base Images" pushd resource/runner || exit 1 $DOCKER build -t git.0x7f.app/woj/ubuntu-full:latest -f scripts/ubuntu-full.Dockerfile . || - (log_error "Build Full Image failed" && exit 1) + { log_error "Build Full Image failed"; exit 1; } $DOCKER build -t git.0x7f.app/woj/ubuntu-run:latest -f scripts/ubuntu-run.Dockerfile . || - (log_error "Build Tiny Image failed" && exit 1) + { log_error "Build Tiny Image failed"; exit 1; } popd || exit 1 } @@ -25,7 +25,7 @@ function push_base() { function build_server() { log_info "[+] Building Server" $DOCKER build -t "git.0x7f.app/woj/woj-server:latest" -f Server.Dockerfile . || - (log_error "[!] Failed to build Server" && exit 1) + { log_error "[!] Failed to build Server"; exit 1; } } function build_runner() { @@ -35,7 +35,7 @@ function build_runner() { --security-opt label=disable \ -t "git.0x7f.app/woj/woj-runner:latest" \ -f Runner.Dockerfile . || - (log_error "[!] Failed to build Runner" && exit 1) + { log_error "[!] Failed to build Runner"; exit 1; } } function push_server() {