Execute Terraform Environment Destroy.
This Action uses the Cloudify Profile environment variables described in the official Cloudify documentation (see More Information below).
(Certain commonly-used inputs are documented in our official website; see More Information below)
- this action handles environment name and labels collision, and it will handle that by passing [environment-id]
- it will check if the environment exists or not [ if it doesn't exist it will not do anything ] and if it exists it will trigger terraform_destroy then delete the environment
jobs:
test_job:
steps:
- name: Delete terraform environment
uses: cloudify-cosmo/terraform-destroy-action@v1.3
with:
environment-name: "test-$GITHUB_RUN_ID"
labels: some_label:label_value,yet_another_label:some_value
Refer to Cloudify CI/CD Integration for additional information about Cloudify's integration with CI/CD tools.