From 7b5a2cb38d3a5713773bbb53dde6f400c6601d64 Mon Sep 17 00:00:00 2001 From: Florian Bachinger Date: Wed, 30 Oct 2024 10:42:53 +0100 Subject: [PATCH] destroy prior to apply --- .github/workflows/kubernetes-setup.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/kubernetes-setup.yml b/.github/workflows/kubernetes-setup.yml index 49d9602..be52f05 100644 --- a/.github/workflows/kubernetes-setup.yml +++ b/.github/workflows/kubernetes-setup.yml @@ -59,7 +59,6 @@ jobs: environment: production env: - TF_VAR_template_vm_id: ${{ secrets.TF_VAR_template_vm_id }} TF_VAR_number_of_control_planes: ${{ secrets.TF_VAR_number_of_control_planes }} TF_VAR_number_of_large_workers: ${{ secrets.TF_VAR_number_of_large_workers }} TF_VAR_number_of_medium_workers: ${{ secrets.TF_VAR_number_of_medium_workers }} @@ -92,6 +91,12 @@ jobs: shell: bash run: terraform init + # Removes old instances + - name: Terraform Destroy + shell: bash + run: terraform destroy -input=false + + # Generates an execution plan for Terraform - name: Terraform Plan shell: bash