From 06ae412bff2fb9846c9d215a49daf3a534812aa6 Mon Sep 17 00:00:00 2001 From: Edwin Eames Date: Sun, 4 Jan 2026 17:17:00 -0500 Subject: [PATCH] updated build script --- build_and_push.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) mode change 100644 => 100755 build_and_push.sh diff --git a/build_and_push.sh b/build_and_push.sh old mode 100644 new mode 100755 index 2999425..cc50e2c --- a/build_and_push.sh +++ b/build_and_push.sh @@ -3,15 +3,22 @@ # Set the name of the Docker Compose file COMPOSE_FILE="docker-compose.build.yml" -# Build the images using docker-compose +# Build the images using docker compose echo "Building Docker images..." -docker-compose -f $COMPOSE_FILE build +docker compose -f $COMPOSE_FILE build # Check if the build was successful if [ $? -eq 0 ]; then echo "Build successful. Pushing images to Docker registry..." # Push the images to the registry - docker-compose -f $COMPOSE_FILE push + docker compose -f $COMPOSE_FILE push + # Check if the push was successful + if [ $? -eq 0 ]; then + echo "Push successful." + else + echo "Push failed." + exit 1 + fi else echo "Build failed. Aborting push to registry." exit 1