-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.08 KB
/
Copy pathplatform.yaml
File metadata and controls
40 lines (37 loc) · 1.08 KB
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
name: Platform
on:
push:
branches: [main]
paths:
- "Platform/**"
- ".github/workflows/*platform*"
pull_request:
paths:
- "Platform/**"
- ".github/workflows/*platform*"
branches:
- main
workflow_dispatch:
jobs:
deploy-platform-test:
uses: ./.github/workflows/build-platform.yaml
with:
environment: test
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
DEPLOYMENTPRINCIPAL_NAME: ${{ secrets.DEPLOYMENTPRINCIPAL_NAME }}
APIM_PUBLISHER_EMAIL: ${{ secrets.APIM_PUBLISHER_EMAIL }}
RESOURCE_PREFIX: ${{ vars.RESOURCE_PREFIX }}
deploy-platform-prod:
if: github.ref == 'refs/heads/main'
needs:
- deploy-platform-test
uses: ./.github/workflows/build-platform.yaml
with:
environment: prod
singleResourceGroup: true
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
DEPLOYMENTPRINCIPAL_NAME: ${{ secrets.DEPLOYMENTPRINCIPAL_NAME }}
APIM_PUBLISHER_EMAIL: ${{ secrets.APIM_PUBLISHER_EMAIL }}
RESOURCE_PREFIX: ${{ vars.RESOURCE_PREFIX }}