-
Notifications
You must be signed in to change notification settings - Fork 1
/
pr.bicep
44 lines (40 loc) · 985 Bytes
/
pr.bicep
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
param name string
param location string = resourceGroup().location
@secure()
param githubToken string
param branch string
param runId int
param prNumber string
param githubRuntimeApiUrl string
module basics 'deployBasics.bicep' = {
name: 'basics'
params: {
name: name
location: location
}
}
module webappDeployment 'deploayWebApp.bicep' = {
name: 'webappdeployment'
params: {
githubToken: githubToken
branch: branch
githubRuntimeApiUrl: githubRuntimeApiUrl
githubArtifactName: 'artifact'
githubRunId: string(runId)
prNumber: prNumber
webSiteName: last(split(basics.outputs.website.resourceId, '/'))
location: location
}
}
module events 'deployEvent.bicep' = {
name: 'archivalventdeployment'
dependsOn: [
webappDeployment
]
params: {
baseUrl: webappDeployment.outputs.staticWebAppHost
prNumber: prNumber
location: location
storageAccountName: last(split(basics.outputs.storage.resourceId, '/'))
}
}