-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.yml
More file actions
49 lines (45 loc) · 1.34 KB
/
build.yml
File metadata and controls
49 lines (45 loc) · 1.34 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
trigger: none
pr: none
schedules:
- cron: "0 3 * * *"
displayName: Daily build at 03:00 AM
always: true
branches:
include:
- main
pool:
vmImage: "ubuntu-latest"
variables:
- group: "DataModel"
- name: bicepTemplateFile
value: "Infrastructure/main.bicep"
stages:
- stage: Build
displayName: "Build Stage"
jobs:
- job: BuildApp
displayName: "Build App"
steps:
- template: azure-pipelines-build-jobs.yml
parameters:
bicepTemplateFile: $(bicepTemplateFile)
azureTenantId: $(AzureTenantId)
azureClientId: $(AzureClientId)
azureClientSecret: $(AzureClientSecret)
dataverseUrl: $(DataverseUrl)
- stage: Deploy
displayName: "Deploy Stage"
dependsOn: Build
jobs:
- job: DeployApp
displayName: "Deploy App"
steps:
- template: azure-pipelines-deploy-jobs.yml
parameters:
bicepTemplateFile: $(bicepTemplateFile)
azureServiceConnectionName: $(AzureServiceConnectionName)
azureResourceGroupName: $(AzureResourceGroupName)
azureLocation: $(AzureLocation)
websitePassword: $(WebsitePassword)
websiteSessionSecret: $(WebsiteSessionSecret)
websiteName: $(WebsiteName)