Skip to content
Snippets Groups Projects
Commit 470b640d authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

added terraform destroy condition

parent 9ccc7fde
No related branches found
No related tags found
2 merge requests!6Add CD feature to the repo,!1wip: test-keypair without file
Pipeline #7907 failed with stages
in 1 minute and 6 seconds
...@@ -41,7 +41,7 @@ tf-apply: ...@@ -41,7 +41,7 @@ tf-apply:
- export BUILD_DATE=$(TZ=America/Chicago date +%Y%m%d) - export BUILD_DATE=$(TZ=America/Chicago date +%Y%m%d)
- export TF_VAR_internal_network="tf-clusternet-$BUILD_DATE" - export TF_VAR_internal_network="tf-clusternet-$BUILD_DATE"
- export TF_VAR_external_network="tf-dmznet-$BUILD_DATE" - export TF_VAR_external_network="tf-dmznet-$BUILD_DATE"
- terraform apply -auto-approve - terraform apply -auto-approve || terraform destroy
clean-up: clean-up:
stage: cleanup stage: cleanup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment