Skip to content

include bicep in azure deploy action #2

include bicep in azure deploy action

include bicep in azure deploy action #2

name: Deploy Azure resource with OIDC
on:
push:
branches:
- azure-resource-deployment-pipeline
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Azure resources
uses: azure/arm-deploy@v1
with:
template: ./main.bicep
scope: resourcegroup
parameters: |
sqlAdminUsername: ${{ secrets.AZURE_SQL_USERNAME }}
sqlAdminPassword: ${{ secrets.AZURE_SQL_PASSWORD }}
failOnStdErr: false