A GitHub Action to deploy ARM templates.
- Checkout To checks-out your repository so the workflow can access any specified ARM template.
-
creds
Required Paste output ofaz ad sp create-for-rbac -o json
as value of secret variable: AZURE_CREDENTIALS -
resourceGroupName
Required Provide the name of a resource group. -
templateLocation
Required Specify the path to the Azure Resource Manager template. -
deploymentMode
Incremental (only add resources to resource group) or Complete (remove extra resources from resource group). Default:Incremental
. -
deploymentName
Specifies the name of the resource group deployment to create. -
parametersLocation
Specify the path to the Azure Resource Manager parameters file.
- uses: whiteducksoftware/azure-arm-action@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
resourceGroupName: <YourResourceGroup>
templateLocation: <path/to/azuredeploy.json>
on: [push]
name: AzureLoginSample
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: whiteducksoftware/azure-arm-action@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
resourceGroupName: github-action-arm-rg
templateLocation: ./azuredeploy.json
parametersLocation: <path/to/parameters.json>