-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.12 KB
/
azure-resource-group-dispatch.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
name: 'Dispatched Azure Resource Group'
on:
workflow_dispatch:
inputs:
resourceGroupName:
description: 'The name you want to give the resource group'
required: true
action:
required: true
type: choice
description: Create (new) or destroy (existing)
options:
- create
- destroy
jobs:
create-participant-rg:
uses: ./.github/workflows/azure-resource-group.yml
with:
resourceGroupName: ${{ github.event.inputs.resourceGroupName }}
action: ${{ github.event.inputs.action }}
secrets:
AZURE_AD_CLIENT_ID: ${{ secrets.AZURE_AD_CLIENT_ID }}
AZURE_AD_CLIENT_SECRET: ${{ secrets.AZURE_AD_CLIENT_SECRET }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_AD_TENANT_ID: ${{ secrets.AZURE_AD_TENANT_ID }}
AZURE_REGION: ${{ secrets.AZURE_REGION }}
TF_BACKEND_resource_group_name: ${{ secrets.TF_BACKEND_resource_group_name }}
TF_BACKEND_storage_account_name: ${{ secrets.TF_BACKEND_storage_account_name }}
TF_BACKEND_storage_container_name: ${{ secrets.TF_BACKEND_storage_container_name }}