azure-05-dispatch-child-dns-zone #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "azure-05-dispatch-child-dns-zone" | |
on: | |
workflow_call: | |
workflow_dispatch: | |
inputs: | |
baseDomain: | |
description: "Base domain to create new zone under (e.g., tap-workshop.example.com)" | |
required: true | |
domainPrefix: | |
description: "The prefix to use as the subdomain for the child zone (e.g., participant-1)" | |
required: true | |
resourceGroupName: | |
description: "The resource group to create the child zone in (e.g., participant-1)" | |
required: true | |
mainResourceGroup: | |
description: "The resource group that the main DNS zone was created in." | |
required: true | |
action: | |
required: true | |
type: choice | |
description: "Create (new) or destroy (existing)" | |
options: | |
- create | |
- destroy | |
jobs: | |
manage-child-dns: | |
uses: ./.github/workflows/azure-child-dns.yml | |
with: | |
baseDomain: ${{ github.event.inputs.baseDomain }} | |
domainPrefix: ${{ github.event.inputs.domainPrefix }} | |
mainResourceGroup: ${{ github.event.inputs.mainResourceGroup }} | |
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 }} | |
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 }} |