Skip to content

Commit

Permalink
Update terraform-destroy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZinxValkyria authored Mar 4, 2024
1 parent 7a732e5 commit 3e1f4df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/terraform-destroy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: Terraform Destroy
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
env:
TF_LOG: INFO
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUCKET_TF_STATE: ${{ secrets.BUCKET_TF_STATE }}
jobs:
terraform_destroy:
runs-on: ubuntu-latest
needs: terraform_apply
steps:
- uses: actions/checkout@v4
- name: Terraform destroy
run: terraform destroy --auto-approve

0 comments on commit 3e1f4df

Please sign in to comment.