Skip to content

azure-06-dispatch-container-registry #2

azure-06-dispatch-container-registry

azure-06-dispatch-container-registry #2

name: "azure-06-dispatch-container-registry"
on:
workflow_call:
workflow_dispatch:
inputs:
resourceGroupName:
description: "The resource group to provision the registry in"
required: true
registryName:
description: "The name of the ACR registry, this can only be alphanumeric"
required: true
action:
required: true
type: choice
description: "Create (new) or destroy (existing)"
options:
- create
- destroy
jobs:
manage-acr:
uses: ./.github/workflows/azure-container-registry.yml
with:
registryName: ${{ github.event.inputs.registryName }}
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 }}