Skip to content

Commit

Permalink
destroy prior to apply
Browse files Browse the repository at this point in the history
  • Loading branch information
florianBachinger committed Oct 30, 2024
1 parent 92afccb commit 7b5a2cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/kubernetes-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7b5a2cb

Please sign in to comment.