azure-03-dispatch-virtual-network #4
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-03-dispatch-virtual-network" | |
on: | |
workflow_dispatch: | |
inputs: | |
resourceGroupName: | |
description: "The name of an existing resource group" | |
required: true | |
virtualNetworkCidr: | |
description: "The Virtual Network CIDR block (e.g., 10.1.0.0/16)" | |
required: true | |
operatorSubnetCidr: | |
description: "The Subnet CIDR block for operator resources (e.g., 10.1.0.0/24)" | |
required: true | |
aksSubnetCidr: | |
description: "The Subnet CIDR block hosting AKS cluster (e.g., 10.1.128.0/18)" | |
required: true | |
action: | |
required: true | |
type: choice | |
description: "Create (new) or destroy (existing)" | |
options: | |
- create | |
- destroy | |
jobs: | |
manage-vnet: | |
uses: ./.github/workflows/azure-virtual-network.yml | |
with: | |
virtualNetworkCidr: ${{ github.event.inputs.virtualNetworkCidr }} | |
resourceGroupName: ${{ github.event.inputs.resourceGroupName }} | |
operatorSubnetCidr: ${{ github.event.inputs.operatorSubnetCidr }} | |
aksSubnetCidr: ${{ github.event.inputs.aksSubnetCidr }} | |
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 }} |