-
-
Notifications
You must be signed in to change notification settings - Fork 53
46 lines (39 loc) · 1.32 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
name: build+deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
# Build the website
build:
uses: ./.github/workflows/build.yml
# Lint the Bicep file
lint:
uses: ./.github/workflows/lint.yml
# Deploy to the test environment.
deploy-test:
uses: ./.github/workflows/deploy.yml
needs: [build, lint]
with:
environmentType: Test
resourceGroupName: RapidBlazorTest
sqlServerAdministratorLogin: SqlAdmin
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID_TEST }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
SQL_SERVER_ADMINISTRATOR_LOGIN_PASSWORD: ${{ secrets.SQL_SERVER_ADMINISTRATOR_LOGIN_PASSWORD_TEST }}
# Deploy to the production environment.
deploy-prod:
uses: ./.github/workflows/deploy.yml
needs: [build, lint, deploy-test]
with:
environmentType: Production
resourceGroupName: RapidBlazorProduction
sqlServerAdministratorLogin: SqlAdmin
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID_PRODUCTION }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
SQL_SERVER_ADMINISTRATOR_LOGIN_PASSWORD: ${{ secrets.SQL_SERVER_ADMINISTRATOR_LOGIN_PASSWORD_PRODUCTION }}