cleanup after failure or cancel

This commit is contained in:
miampf 2024-05-03 13:10:29 +02:00
parent 79d3781f3e
commit 92f13a6e5c
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -38,9 +38,17 @@ runs:
- name: MiniConstellation E2E
shell: bash
id: e2e-test
env:
ARM_CLIENT_ID: ${{ inputs.azureClientID }}
ARM_SUBSCRIPTION_ID: ${{ inputs.azureSubscriptionID }}
ARM_TENANT_ID: ${{ inputs.azureTenantID }}
run: |
bazel run --test_timeout=14400 //e2e/miniconstellation:push_remote_test
- name: Clean up after failure
shell: bash
# clean up if e2e test failed or if the run was cancelled
if: (failure() && steps.e2e-test.conclusion == 'failure') || cancelled()
run: |
terraform destroy -auto-approve