From e4fe0859b33a5cff716b122b473c10b64c27e70e Mon Sep 17 00:00:00 2001 From: CC Date: Wed, 20 May 2026 23:59:43 +0100 Subject: [PATCH] n8n module detsroy --- .gitea/workflows/destroy_module.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/destroy_module.yml diff --git a/.gitea/workflows/destroy_module.yml b/.gitea/workflows/destroy_module.yml new file mode 100644 index 0000000..b6eaf38 --- /dev/null +++ b/.gitea/workflows/destroy_module.yml @@ -0,0 +1,36 @@ +name: Terraform Destroy + +on: + workflow_dispatch: + inputs: + working_directory: + description: "Working directory for the module" + required: false + default: "terraform" + type: string + +jobs: + destroy: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + working-directory: ${{ inputs.working_directory }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v4 + + - name: Terraform Init + run: terraform init + + - name: Terraform Destroy Plan + run: terraform plan -destroy -out=tfplan + continue-on-error: false + + - name: Terraform Destroy + run: terraform destroy -auto-approve