-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.bicep
34 lines (26 loc) · 812 Bytes
/
test.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
module staticapp './staticapp.bicep' = {
name: 'staticAppDeploy'
params: {
token: token
repositoryUrl: repo
namePrefix: namePrefix
branch: branch
appArtifactLocation: appArtifactLocation
}
}
// Deployment Scope
targetScope = 'resourceGroup'
@description('In the format of: https://github.com/account/reponame')
param repo string
@description('Which branch in the repo are you deploying from? e.g. main')
param branch string
@description('Where are the app artifacts located? e.g. public')
param appArtifactLocation string
@description('Enter your GitHub PAT')
@secure()
param token string
@description('Enter a unique prefix - e.g. mecweb')
param namePrefix string
// Outputs
output siteName string = staticapp.outputs.siteName
output siteUrl string = staticapp.outputs.siteUrl