forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstages.yml
191 lines (178 loc) · 5.65 KB
/
stages.yml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
parameters:
## Build stages
# NB: all stages _must_ depend on `env`
- name: buildStageDeps
displayName: "Build stage dependencies"
type: object
default:
- env
- prechecks
- name: macBuildStageDeps
displayName: "macOS stage dependencies"
type: object
default:
- env
- prechecks
- name: windowsBuildStageDeps
displayName: "Windows stage dependencies"
type: object
default:
- env
- prechecks
- name: checkStageDeps
displayName: "Check stage dependencies"
type: object
default:
- env
- linux_x64
- name: concurrencyChecks
displayName: "Check concurrency"
type: number
default: 3
- name: concurrencyPrechecks
displayName: "Prechecks concurrency"
type: number
default: 10
## Timeouts
- name: timeoutDockerPublish
displayName: "Timout Docker publish"
type: number
default: 10
- name: timeoutDockerBuild
displayName: "Timout Docker build"
type: number
default: 400
## Build settings
- name: cacheTestResults
displayName: "Cache test results"
type: boolean
default: true
stages:
- stage: env
displayName: Environment
jobs:
- template: env.yml
- stage: prechecks
displayName: Prechecks
dependsOn: ["env"]
variables:
CHECK_DEPS: $[stageDependencies.env.repo.outputs['changed.requirements']]
jobs:
- template: stage/prechecks.yml
parameters:
concurrencyPrechecks: ${{ parameters.concurrencyPrechecks }}
cacheTestResults: ${{ parameters.cacheTestResults }}
authGithub: $(GitHubPublicRepoOnlyAccessToken)
authGCP: $(GcpServiceAccountKey)
authGPGPassphrase: $(MaintainerGPGKeyPassphrase)
authGPGKey: $(MaintainerGPGKeySecureFileDownloadPath)
authGPGPath: $(MaintainerGPGKey.secureFilePath)
bucketGCP: $(GcsArtifactBucket)
checkDeps: variables['CHECK_DEPS']
- stage: sync
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))
dependsOn: []
jobs:
- template: stage/sync.yml
parameters:
authGCP: $(GcpServiceAccountKey)
authSSHDataPlaneApiKeyPublic: $(DataPlaneApiPublicKey)
authSSHDataPlaneApiKey: $(DataPlaneApiPrivateKey)
authSSHGoControlPlaneKeyPublic: $(GoControlPlanePublicKey)
authSSHGoControlPlaneKey: $(GoControlPlanePrivateKey)
authSSHFilterExampleKeyPublic: $(FilterExamplePublicKey)
authSSHFilterExampleKey: $(FilterExamplePrivateKey)
authSSHKeyPassphrase: $(SshDeployKeyPassphrase)
- stage: linux_x64
displayName: Linux x64
dependsOn: ${{ parameters.buildStageDeps }}
variables:
RUN_BUILD: $[stageDependencies.env.repo.outputs['run.build']]
jobs:
- template: stage/linux.yml
parameters:
cacheTestResults: ${{ parameters.cacheTestResults }}
runBuild: variables['RUN_BUILD']
- stage: linux_arm64
displayName: Linux arm64
dependsOn: ${{ parameters.buildStageDeps }}
variables:
RUN_BUILD: $[stageDependencies.env.repo.outputs['run.build']]
jobs:
- template: stage/linux.yml
parameters:
cacheTestResults: ${{ parameters.cacheTestResults }}
rbe: false
artifactSuffix: .arm64
timeoutBuild: 180
pool: envoy-arm-large
runBuild: variables['RUN_BUILD']
- stage: check
displayName: Checks (Linux x64)
dependsOn: ${{ parameters.checkStageDeps }}
variables:
# Skip checks if only mobile/ or docs/ have changed.
RUN_CHECKS: $[stageDependencies.env.repo.outputs['run.checks']]
jobs:
- template: stage/checks.yml
parameters:
concurrencyChecks: ${{ parameters.concurrencyChecks }}
authGCP: $(GcpServiceAccountKey)
bucketGCP: $(GcsArtifactBucket)
runChecks: variables['RUN_CHECKS']
- stage: publish
displayName: Publish
dependsOn: ["env", "linux_x64", "linux_arm64"]
variables:
RUN_DOCKER: $[stageDependencies.env.repo.outputs['run.docker']]
RUN_PACKAGING: $[stageDependencies.env.repo.outputs['run.packaging']]
PUBLISH_GITHUB_RELEASE: $[stageDependencies.env.repo.outputs['publish.githubRelease']]
PUBLISH_NETLIFY: $[stageDependencies.env.repo.outputs['publish.netlify']]
jobs:
- template: stage/publish.yml
parameters:
authDockerUser: $(DockerUsername)
authDockerPassword: $(DockerPassword)
authGCP: $(GcpServiceAccountKey)
authGithub: $(GitHubPublicRepoOnlyAccessToken)
authGPGPassphrase: $(MaintainerGPGKeyPassphrase)
authGPGKey: $(MaintainerGPGKeySecureFileDownloadPath)
authGPGPath: $(MaintainerGPGKey.secureFilePath)
authNetlifyURL: $(NetlifyTriggerURL)
authSSHDocsKeyPublic: $(DocsPublicKey)
authSSHDocsKey: $(DocsPrivateKey)
authSSHKeyPassphrase: $(SshDeployKeyPassphrase)
bucketGCP: $(GcsArtifactBucket)
timeoutDockerBuild: ${{ parameters.timeoutDockerBuild }}
timeoutDockerPublish: ${{ parameters.timeoutDockerPublish }}
runDocker: variables['RUN_DOCKER']
runPackaging: variables['RUN_PACKAGING']
publishNetlify: variables['PUBLISH_NETLIFY']
publishGithubRelease: variables['PUBLISH_GITHUB_RELEASE']
- stage: verify
displayName: Verify
dependsOn: ["env", "publish"]
jobs:
- template: stage/verify.yml
parameters:
authGCP: $(GcpServiceAccountKey)
- stage: macos
displayName: macOS
dependsOn: ${{ parameters.macBuildStageDeps }}
variables:
RUN_BUILD: $[stageDependencies.env.repo.outputs['run.build']]
jobs:
- template: stage/macos.yml
parameters:
authGCP: $(GcpServiceAccountKey)
runBuild: variables['RUN_BUILD']
- stage: windows
displayName: Windows
dependsOn: ${{ parameters.windowsBuildStageDeps }}
variables:
RUN_BUILD: $[stageDependencies.env.repo.outputs['run.build']]
jobs:
- template: stage/windows.yml
parameters:
authGCP: $(GcpServiceAccountKey)
runBuild: variables['RUN_BUILD']