Last active
October 20, 2022 13:41
-
-
Save oliverlabs/74c86a5b86222f35b1d1e44a8c109105 to your computer and use it in GitHub Desktop.
GitHub Actions Simple Bicep Azure Deploy Pipeline
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
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