-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yaml
67 lines (59 loc) · 2.08 KB
/
build.yaml
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
trigger:
- develop
- master
pr: none
parameters:
- name: isCms
type: boolean
default: false
variables:
azureResourceManagerConnection: "Azure CSP"
azureSubscriptionId: "ba48b53c-e4c7-49c8-91e5-c03f5df70980"
armTemplateFile: "$(Pipeline.Workspace)/resources/app.json"
armParameterFile: "$(Pipeline.Workspace)/resources/app.parameters.json"
pool:
vmImage: ubuntu-latest
stages:
- template: ./azure_pipelines/biceps.yaml
parameters:
isCms: ${{parameters.isCms}}
- template: ./azure_pipelines/buildAndDeployNuxt.yaml
parameters:
isCms: ${{parameters.isCms}}
environment: dev
domain: '["av-ecom.laitdev.dk"]'
serverRender: true
azureResourceManagerConnection: $(azureResourceManagerConnection)
azureSubscriptionId: $(azureSubscriptionId)
armTemplateFile: $(armTemplateFile)
armParameterFile: $(armParameterFile)
solutionName: av-ecommerce
siteName: avdk
deployBranch: refs/heads/develop
- ${{ if eq(variables['build.sourceBranch'], 'refs/heads/master')}}:
- template: ./azure_pipelines/buildAndDeployNuxt.yaml
parameters:
isCms: ${{parameters.isCms}}
environment: preview
domain: '[]'
serverRender: false
azureResourceManagerConnection: $(azureResourceManagerConnection)
azureSubscriptionId: $(azureSubscriptionId)
armTemplateFile: $(armTemplateFile)
armParameterFile: $(armParameterFile)
solutionName: av-ecommerce
siteName: avdk
deployBranch: refs/heads/master
- template: ./azure_pipelines/buildAndDeployNuxt.yaml
parameters:
isCms: ${{parameters.isCms}}
environment: prod
domain: '[]'
serverRender: true
azureResourceManagerConnection: $(azureResourceManagerConnection)
azureSubscriptionId: $(azureSubscriptionId)
armTemplateFile: $(armTemplateFile)
armParameterFile: $(armParameterFile)
solutionName: av-ecommerce
siteName: avdk
deployBranch: refs/heads/master