From f7e8200ebf93781a50a0d0f9301bfda79a7250a9 Mon Sep 17 00:00:00 2001 From: Leo Huang Date: Mon, 21 Oct 2024 16:05:46 -0700 Subject: [PATCH] Update cd-dev.yaml --- .github/workflows/cd-dev.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cd-dev.yaml b/.github/workflows/cd-dev.yaml index b68d421b3..839ac0942 100644 --- a/.github/workflows/cd-dev.yaml +++ b/.github/workflows/cd-dev.yaml @@ -51,8 +51,13 @@ jobs: username: root key: ${{ secrets.SSH_KEY }} script: | + set -e # Exit immediately if a command fails cd ./infra + + # Uninstall the old helm chart if it exists helm uninstall bt-dev-app-${{ needs.compute-sha.outputs.sha_short }} || true + + # Install new chart; this will fail the script if an error occurs helm install bt-dev-app-${{ needs.compute-sha.outputs.sha_short }} ./app --namespace=bt \ --set env=dev \ --set ttl=${{ inputs.ttl }} \