mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-15 07:49:34 +00:00
Ensure the cluster is always destroyed
Always teardown the cluster if the terraform apply step has started to run, regardless of its result.
This commit is contained in:
parent
65f101891d
commit
2e989e59ef
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -237,6 +237,7 @@ jobs:
|
||||
run: terraform init
|
||||
|
||||
- name: Terraform apply
|
||||
id: tf-apply
|
||||
working-directory: ${{ env.TF_DIR }}
|
||||
run: terraform apply -auto-approve
|
||||
|
||||
@ -291,7 +292,7 @@ jobs:
|
||||
[[ "$job_status" == "SuccessCriteriaMet" ]] || exit 1
|
||||
|
||||
- name: Terraform destroy
|
||||
if: always()
|
||||
if: always() && steps.tf-apply.conclusion != 'skipped'
|
||||
working-directory: ${{ env.TF_DIR }}
|
||||
run: terraform destroy -auto-approve
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user