Skip to content

Commit 9c6a3d0

Browse files
authored
Merge pull request #31224 from def-/pr-terraform-cleanup
ci: Clean up potentially leftover state in case job was cancelled
2 parents 2ed27fe + 1e1eb50 commit 9c6a3d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/plugins/mzcompose/hooks/pre-exit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,7 @@ ci_unimportant_heading ":docker: Cleaning up after mzcompose"
145145
run kill || true
146146
run rm --force -v
147147
run down --volumes
148+
149+
ci_unimportant_heading "terraform: Destroying leftover state in case job was cancelled or timed out..."
150+
bin/ci-builder run stable terraform -chdir=test/terraform/aws destroy || true
151+
bin/ci-builder run stable terraform -chdir=test/terraform/gcp destroy || true

0 commit comments

Comments
 (0)