-
Notifications
You must be signed in to change notification settings - Fork 8
99 lines (96 loc) · 3.8 KB
/
deploy-azd-dev.yml
File metadata and controls
99 lines (96 loc) · 3.8 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: deploy-azd-dev (entrypoint)
on:
workflow_run:
workflows:
- test
types:
- completed
branches:
- main
workflow_dispatch:
inputs:
location:
description: Azure location
required: true
default: centralus
projectName:
description: Project prefix used by naming convention
required: true
default: holidaypeakhub405
imageTag:
description: Image tag to deploy
required: true
default: latest
testedSourceSha:
description: Optional tested source commit SHA to deploy (empty = current ref)
required: false
default: ''
skipProvision:
description: Skip azd provision and reuse the current dev infrastructure for a manual emergency redeploy
required: true
type: boolean
default: false
serviceFilter:
description: Optional comma-separated AKS service names to deploy (empty = all changed services)
required: false
default: ''
deployStatic:
description: Provision static web app resources
required: true
type: boolean
default: true
uiOnly:
description: Deploy only the UI using SWA token (skips provision and Azure login jobs)
required: true
type: boolean
default: false
forceApimSync:
description: Force APIM sync and smoke checks even when no changed services are detected
required: true
type: boolean
default: true
foundrySurfaceMode:
description: Foundry surface registration mode (plan creates an artifact; apply creates/updates Hosted Agent versions)
required: true
type: choice
options:
- plan
- apply
default: plan
permissions:
id-token: write
contents: write
jobs:
deploy:
if: >-
github.event_name != 'workflow_run' ||
(github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push')
permissions:
id-token: write
contents: write
issues: write
uses: ./.github/workflows/deploy-azd.yml
with:
environment: dev
githubEnvironment: dev
location: ${{ github.event_name == 'workflow_dispatch' && inputs.location || 'centralus' }}
projectName: ${{ github.event_name == 'workflow_dispatch' && inputs.projectName || 'holidaypeakhub405' }}
imageTag: ${{ github.event_name == 'workflow_dispatch' && inputs.imageTag || github.event.workflow_run.head_sha }}
sourceSha: ${{ github.event_name == 'workflow_dispatch' && inputs.testedSourceSha || (github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || '') }}
sourceRef: ${{ github.event_name == 'workflow_dispatch' && github.ref || (github.event_name == 'workflow_run' && format('refs/heads/{0}', github.event.workflow_run.head_branch) || '') }}
deployStatic: ${{ github.event_name != 'workflow_dispatch' || inputs.deployStatic }}
uiOnly: ${{ github.event_name == 'workflow_dispatch' && inputs.uiOnly }}
apiBaseUrl: ''
deployChangedOnly: true
skipProvision: ${{ github.event_name == 'workflow_dispatch' && inputs.skipProvision }}
serviceFilter: ${{ github.event_name == 'workflow_dispatch' && inputs.serviceFilter || '' }}
forceApimSync: ${{ github.event_name == 'workflow_dispatch' && inputs.forceApimSync }}
autoAllowAcrRunnerIp: true
skipApiSmokeChecks: false
deployFoundrySurfaces: ${{ github.event_name == 'workflow_dispatch' }}
foundrySurfaceMode: ${{ github.event_name == 'workflow_dispatch' && inputs.foundrySurfaceMode || 'plan' }}
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}