From 789d5080dcc3cfb294ce4f776ac2459a0901f34b Mon Sep 17 00:00:00 2001 From: oliverbeumkes-nhs Date: Mon, 9 Dec 2024 10:32:51 +0000 Subject: [PATCH] [PRMP-1347] Always run terraform destroy an deploy ui depends on terraform process (#220) --- .../terraform-daily-healthcheck-deploy-and-destroy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terraform-daily-healthcheck-deploy-and-destroy.yml b/.github/workflows/terraform-daily-healthcheck-deploy-and-destroy.yml index 99a57bb4..b814fe5c 100644 --- a/.github/workflows/terraform-daily-healthcheck-deploy-and-destroy.yml +++ b/.github/workflows/terraform-daily-healthcheck-deploy-and-destroy.yml @@ -171,7 +171,7 @@ jobs: deploy_ui: name: Deploy UI uses: nhsconnect/national-document-repository/.github/workflows/base-deploy-ui.yml@main - needs: ['set_workspace'] + needs: ['terraform_process', 'set_workspace'] with: build_branch: main sandbox: ${{ needs.set_workspace.outputs.workspace }} @@ -180,6 +180,7 @@ jobs: AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }} destroy_test_environment: + if: always() name: Destroy the Sandbox Environment from previous job needs: [ 'set_workspace', 'deploy_ui', 'deploy_all_lambdas' ] uses: ./.github/workflows/terraform-destroy-environment-manual.yml