Skip to content

Commit

Permalink
ci: update terraform destroy workflo file
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Nov 26, 2024
1 parent 5e23290 commit ab68d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform-destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Terraform Validate
run: terraform validate

- run: echo "DROPLET_SIZE=$(terraform output -raw droplet_size)" >> $GITHUB_ENV
- run: echo "DROPLET_SIZE=$(terraform output -json | jq -r '.droplet_size.value // empty')" >> $GITHUB_ENV

- name: Terraform Destroy
run: terraform destroy -auto-approve
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
TF_VAR_droplet_size: $DROPLET_SIZE
TF_VAR_droplet_size: ${{ env.DROPLET_SIZE }}

0 comments on commit ab68d70

Please sign in to comment.