generated from frasermolyneux-archive/poc-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 1.12 KB
/
destroy-environment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Destroy Development
on:
workflow_dispatch:
schedule:
- cron: "0 22 * * *"
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
terraform-destroy-poc:
environment: POC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: frasermolyneux/actions/terraform-destroy@main
with:
terraform-folder: "terraform"
terraform-var-file: "tfvars/poc.tfvars"
backend-subscription-id: ${{ secrets.tf_backend_subscription_id }}
backend-resource-group-name: ${{ secrets.tf_backend_resource_group_name }}
backend-storage-account-name: ${{ secrets.tf_backend_storage_account_name }}
backend-container-name: ${{ secrets.tf_backend_container_name }}
backend-key: ${{ secrets.tf_backend_key }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
env:
GITHUB_TOKEN: ${{ secrets.TERRAFORM_GITHUB_TOKEN }}