From 078df7991cf793e5df3264aa1405adf46d148265 Mon Sep 17 00:00:00 2001 From: Vladislav Klimenko Date: Fri, 12 Apr 2024 02:29:27 +0300 Subject: [PATCH] dev: propagate docker image result --- deploy/devspace/dev-install.sh | 10 +++++++++- dev/image_build_universal.sh | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/deploy/devspace/dev-install.sh b/deploy/devspace/dev-install.sh index bb7d2e03b..f0ea45db1 100755 --- a/deploy/devspace/dev-install.sh +++ b/deploy/devspace/dev-install.sh @@ -42,7 +42,15 @@ if [[ "${MINIKUBE}" == "yes" ]]; then minikube image rm "${METRICS_EXPORTER_IMAGE}" > /dev/null 2>&1 echo "Build images in minikube" echo "VERBOSITY=${VERBOSITY} MINIKUBE=yes ${PROJECT_ROOT}/dev/image_build_all_dev.sh" - VERBOSITY="${VERBOSITY}" MINIKUBE=yes "${PROJECT_ROOT}/dev/image_build_all_dev.sh" + if VERBOSITY="${VERBOSITY}" MINIKUBE=yes "${PROJECT_ROOT}/dev/image_build_all_dev.sh"; then + echo "OK. MINIKUBE build successful." + else + echo "########################" + echo "ERROR." + echo "MINIKUBE build has failed." + echo "Abort." + exit 1 + fi ;; esac fi diff --git a/dev/image_build_universal.sh b/dev/image_build_universal.sh index fc99f9087..ad982e15f 100644 --- a/dev/image_build_universal.sh +++ b/dev/image_build_universal.sh @@ -103,14 +103,15 @@ fi echo "Docker build command ready:" echo "${DOCKER_CMD}" -echo "Starting build." +echo "Starting docker image build." echo "Please, wait..." if ${DOCKER_CMD}; then echo "OK. Build successful." else echo "########################" - echo "ERROR. Build has failed." + echo "ERROR." + echo "Docker image build has failed." echo "Abort" exit 1 fi