From a63c5643b0289b8e3749ae80325d81e78c947f7f Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sat, 1 Mar 2025 17:18:44 -0300 Subject: [PATCH] improved logging for better visibility --- build_and_push.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build_and_push.sh b/build_and_push.sh index 8c4248a..cc12ef9 100755 --- a/build_and_push.sh +++ b/build_and_push.sh @@ -9,7 +9,8 @@ IMAGES=( ) build_images() { - echo "Starting the build of the images..." + echo "==========================================================================================" + echo "========== Starting the build of the images..." docker compose -f docker-compose-build.yml build if [ $? -eq 0 ]; then echo "Build completed successfully." @@ -20,8 +21,13 @@ build_images() { } push_images() { + echo "==========================================================================================" + echo "========== Pushing images" for IMAGE in "${IMAGES[@]}"; do - echo "Pushing image: $IMAGE..." + echo "" + echo "" + echo "==========================================================================================" + echo "========== Pushing image: $IMAGE..." docker push "$IMAGE" if [ $? -eq 0 ]; then echo "$IMAGE pushed successfully."