-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1002 Bytes
/
preview.yaml
File metadata and controls
41 lines (36 loc) · 1002 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
34
35
36
37
38
39
40
41
name: Preview workflow
run-name: ${{ github.actor }} is deploying the cms to preview
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
issues: write
jobs:
Preview:
runs-on: ubuntu-latest
environment: preview
steps:
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Show subscription details
uses: azure/CLI@v2
with:
azcliversion: latest
inlineScript: |
az account show
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Deploy cms
uses: azure/arm-deploy@v2
with:
scope: subscription
region: westeurope
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
template: ./deploy/main.bicep
failOnStdErr: false