Skip to content

Commit

Permalink
Updating destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Jan 6, 2024
1 parent a2c5c71 commit 6ee1496
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/destroy-development.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Destroy Development

on:
workflow_dispatch:
workflow_dispatch:
schedule:
- cron: "0 23 * * *"

permissions:
id-token: write # This is required for requesting the JWT
id-token: write # This is required for Az CLI Login
contents: read # This is required for actions/checkout

jobs:
Expand All @@ -18,11 +20,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: frasermolyneux/actions/terraform-destroy@main
- uses: frasermolyneux/actions/terraform-destroy-resources@main
with:
terraform-folder: "terraform"
terraform-var-file: "tfvars/dev.tfvars"
terraform-backend-file: "backends/dev.backend.hcl"
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
resources: "['azurerm_linux_web_app.app']"

0 comments on commit 6ee1496

Please sign in to comment.