-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.54 KB
/
workflow.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: deploy-auto-website-suite
concurrency: auto-bicep
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
env:
resourceGroupName: rg_sb_eastus_89803_1_171095341434
jobs:
setup:
runs-on: ubuntu-latest
outputs:
resourceGroupName: ${{ env.resourceGroupName }}
steps:
- name: Set env
run: echo "resourceGroupName=rg_sb_eastus_89803_1_171095341434" >> $GITHUB_ENV
# Lint the Bicep file.
lint:
uses: ./.github/workflows/lint.yml
validate:
needs: [lint, setup]
uses: ./.github/workflows/validate.yml
with:
resourceGroupName: ${{ needs.setup.outputs.resourceGroupName}}
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
preview:
needs: [validate, setup]
uses: ./.github/workflows/preview.yml
with:
resourceGroupName: ${{ needs.setup.outputs.resourceGroupName}}
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
deploy:
needs: [preview, setup]
uses: ./.github/workflows/deploy.yml
with:
resourceGroupName: ${{ needs.setup.outputs.resourceGroupName}} }}
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}