-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 915 Bytes
/
deployBicepFile.yml
File metadata and controls
33 lines (27 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Cryptotracker Azure bicep deploy
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
jobs:
bicep-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: OIDC Login to Azure Public Cloud with AzPowershell
uses: azure/login@v1
with:
client-id: ${{ vars.AZURE_DEPLOYMENT_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true
- name: deploy
uses: azure/arm-deploy@v2
with:
subscriptionId: ${{ vars.AZURE_SUBSCRIPTION_ID }}
resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }}
scope: resourcegroup
template: ./infra/main.bicep
parameters: ./infra/main.parameters.json azureDbConnectionString="${{ vars.AZURE_DB_CONNECTION_STRING }}"
failOnStdErr: false