mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-01 23:58:51 +00:00
tests/int: Add separate resource cleanup step
Introduce a destroy-only mode in the test runner to run terraform destroy for the respective cloud provider configurations. This can be used to destroy cloud resources without going through the whole provision-test process. Add a new step in github actions workflow to run the test binary in destoy-only mode at the very end irrespective of the result of the previous steps. This ensures that the infrastructure is always destroyed, even if the CI job is cancelled. Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
1532687191
commit
94c9b13fbd
7 changed files with 60 additions and 7 deletions
|
|
@ -17,9 +17,10 @@ require (
|
|||
github.com/fluxcd/pkg/git/gogit v0.16.1
|
||||
github.com/fluxcd/pkg/runtime v0.43.2
|
||||
github.com/fluxcd/source-controller/api v1.2.3
|
||||
github.com/fluxcd/test-infra/tftestenv v0.0.0-20230831142147-627bca8e7916
|
||||
github.com/fluxcd/test-infra/tftestenv v0.0.0-20240108135005-b58e0c4e0cfa
|
||||
github.com/go-git/go-git/v5 v5.11.0
|
||||
github.com/google/go-containerregistry v0.16.1
|
||||
github.com/hashicorp/terraform-exec v0.18.1
|
||||
github.com/hashicorp/terraform-json v0.16.0
|
||||
github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5
|
||||
github.com/onsi/gomega v1.30.0
|
||||
|
|
@ -89,7 +90,6 @@ require (
|
|||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||
github.com/hashicorp/go-version v1.6.0 // indirect
|
||||
github.com/hashicorp/hc-install v0.5.0 // indirect
|
||||
github.com/hashicorp/terraform-exec v0.18.1 // indirect
|
||||
github.com/imdario/mergo v0.3.16 // indirect
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
||||
github.com/josharian/intern v1.0.0 // indirect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue