This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yaml
112 lines (104 loc) · 3.14 KB
/
azure-pipelines.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
trigger:
- master
pr:
- master
resources:
repositories:
- repository: azTemplates
type: github
name: hmcts/azure-devops-templates
ref: master
endpoint: hmcts
variables:
- group: HMI-APIM-Common
- name: product
value: 'hmi'
- name: businessArea
value: 'cross-cutting'
- name: builtFrom
value: $(Build.Repository.Name)
- name: application
value: 'hearings-management-interface'
stages:
- stage: CIBuild
displayName: 'CI Build Application'
jobs:
- template: pipeline/jobs/terraform-validate.yaml
parameters:
terraformPath: $(Build.SourcesDirectory)/terraform
## NOTE:
## The Environments and Services parameters below are duplicated
## This is due to limitations on AzDO Pipelines setting parameter templates and/or non-runtime parameters and/or object type variables.
## If you change one, be sure to change all others below.
- template: pipeline/stages/plan.yaml
parameters:
environments:
- name: sbox
subscription: DTS-SHAREDSERVICES-SBOX
dependency: 'CIBuild'
- name: dev
subscription: DTS-SHAREDSERVICES-DEV
dependency: 'sbox'
- name: test
subscription: DTS-SHAREDSERVICES-TEST
dependency: 'dev'
- name: ithc
subscription: DTS-SHAREDSERVICES-ITHC
dependency: 'dev'
- name: demo
subscription: DTS-SHAREDSERVICES-DEMO
dependency: 'dev'
- name: stg
subscription: DTS-SHAREDSERVICES-STG
dependency: 'test'
- name: prod
subscription: DTS-SHAREDSERVICES-PROD
dependency: 'stg'
- template: pipeline/stages/wait.yaml
parameters:
environments:
- name: sbox
subscription: DTS-SHAREDSERVICES-SBOX
dependency: 'CIBuild'
- name: dev
subscription: DTS-SHAREDSERVICES-DEV
dependency: 'sbox'
- name: test
subscription: DTS-SHAREDSERVICES-TEST
dependency: 'dev'
- name: ithc
subscription: DTS-SHAREDSERVICES-ITHC
dependency: 'dev'
- name: demo
subscription: DTS-SHAREDSERVICES-DEMO
dependency: 'dev'
- name: stg
subscription: DTS-SHAREDSERVICES-STG
dependency: 'test'
- name: prod
subscription: DTS-SHAREDSERVICES-PROD
dependency: 'stg'
- template: pipeline/stages/apply.yaml
parameters:
environments:
- name: sbox
subscription: DTS-SHAREDSERVICES-SBOX
dependency: 'CIBuild'
- name: dev
subscription: DTS-SHAREDSERVICES-DEV
dependency: 'sbox'
- name: test
subscription: DTS-SHAREDSERVICES-TEST
dependency: 'dev'
- name: ithc
subscription: DTS-SHAREDSERVICES-ITHC
dependency: 'dev'
- name: demo
subscription: DTS-SHAREDSERVICES-DEMO
dependency: 'dev'
- name: stg
subscription: DTS-SHAREDSERVICES-STG
dependency: 'test'
- name: prod
subscription: DTS-SHAREDSERVICES-PROD
dependency: 'stg'