Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Latest commit

 

History

History
53 lines (36 loc) · 1.58 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.58 KB

GitHub Action for Azure Resource Manager (ARM) deployment

A GitHub Action to deploy ARM templates.

build and publish

Dependencies

  • Checkout To checks-out your repository so the workflow can access any specified ARM template.

Inputs

  • creds Required Paste output of az 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.

Usage

- uses: whiteducksoftware/azure-arm-action@v1
  with:
    creds: ${{ secrets.AZURE_CREDENTIALS }}
    resourceGroupName: <YourResourceGroup>
    templateLocation: <path/to/azuredeploy.json>

Example

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>