Skip to content

Instantly share code, notes, and snippets.

@oliverlabs
Last active October 20, 2022 13:41
Show Gist options
  • Save oliverlabs/74c86a5b86222f35b1d1e44a8c109105 to your computer and use it in GitHub Desktop.
Save oliverlabs/74c86a5b86222f35b1d1e44a8c109105 to your computer and use it in GitHub Desktop.
GitHub Actions Simple Bicep Azure Deploy Pipeline
on: [push]
name: Azure ARM
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout code
- uses: actions/checkout@main
# Log into Azure
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
# Deploy Bicep file
- name: deploy
uses: azure/arm-deploy@v1
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG }}
template: ./main.bicep
parameters: storagePrefix=stg
failOnStdErr: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment