Skip to content

add resources group in yml #5

add resources group in yml

add resources group in yml #5

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:
resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP }}
template: ./main.bicep
scope: resourcegroup
failOnStdErr: false