From 2a88496b75b5b2315ba8faa14e5a13431b5324de Mon Sep 17 00:00:00 2001 From: willdavsmith Date: Wed, 13 Sep 2023 12:15:35 -0700 Subject: [PATCH] Exiting on error --- .github/scripts/release-verification.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/release-verification.sh b/.github/scripts/release-verification.sh index f61b22cd02..5e384010a4 100755 --- a/.github/scripts/release-verification.sh +++ b/.github/scripts/release-verification.sh @@ -14,6 +14,8 @@ # limitations under the License. # ------------------------------------------------------------ +set -ex + # RELEASE_VERSION_NUMBER is the Radius release version number # (e.g. 0.24.0, 0.24.0-rc1) RELEASE_VERSION_NUMBER=$1 @@ -65,7 +67,6 @@ APPCORE_RP_IMAGE=$(kubectl describe pods -n radius-system -l control-plane=appli UCP_IMAGE=$(kubectl describe pods -n radius-system -l control-plane=ucp | awk '/^.*Image:/ {print $2}') DE_IMAGE=$(kubectl describe pods -n radius-system -l control-plane=bicep-de | awk '/^.*Image:/ {print $2}') - if [[ "${APPCORE_RP_IMAGE}" != "${EXPECTED_APPCORE_RP_IMAGE}" ]]; then echo "Error: Applications RP image: ${APPCORE_RP_IMAGE} does not match the desired image: ${EXPECTED_APPCORE_RP_IMAGE}." exit 1