From 30b349ea49045d741dffc7262b095dd78a7f1a05 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 15 Aug 2024 00:28:52 +0000 Subject: [PATCH] Log if the deployer command fails. (#12) Reviewed-on: https://git.vdb.to/cerc-io/webapp-deployment-status-api/pulls/12 --- run.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/run.sh b/run.sh index ad88742..78e794e 100755 --- a/run.sh +++ b/run.sh @@ -121,6 +121,12 @@ while true; do $EXTRA_UNDEPLOY_OPTS \ $UPDATE_OPTS \ --discover + rc=$? + if [ $rc -eq 0 ]; then + echo "############ UNDEPLOY SUCCESS #############" + else + echo "############ UNDEPLOY FAILURE $rc #############" + fi echo "############ DEPLOY #############" laconic-so deploy-webapp-from-registry \ @@ -139,6 +145,12 @@ while true; do $EXTRA_DEPLOY_OPTS \ $UPDATE_OPTS \ --discover + rc=$? + if [ $rc -eq 0 ]; then + echo "############ DEPLOY SUCCESS #############" + else + echo "############ DEPLOY FAILURE $rc #############" + fi # Cleanup any build leftovers if [[ "${SYSTEM_PRUNE:-false}" == "true" ]]; then