36
36
# Docs
37
37
should-build-docs : ${{ steps.changed-website-files.outputs.any_modified == 'true' || null }}
38
38
# App
39
- should-build-app : ${{ steps.changed-app-files.outputs.any_modified == 'true' || steps.changed-docker-files.outputs.any_modified == 'true' || null }}
39
+ should-build-app : ${{ steps.changed-app-files.outputs.any_modified == 'true' || null }}
40
40
should-build-api : ${{ contains(steps.changed-app-files.outputs.all_modified_files, 'app/api') || null }}
41
41
should-build-selfserve : ${{ contains(steps.changed-app-files.outputs.all_modified_files, 'app/selfserve') || null }}
42
42
should-build-internal : ${{ contains(steps.changed-app-files.outputs.all_modified_files, 'app/internal') || null }}
48
48
should-build-cli-docker : ${{ contains(steps.changed-docker-files.outputs.all_modified_files, 'infra/docker/cli') || null }}
49
49
should-build-selfserve-docker : ${{ contains(steps.changed-docker-files.outputs.all_modified_files, 'infra/docker/selfserve') || null }}
50
50
should-build-internal-docker : ${{ contains(steps.changed-docker-files.outputs.all_modified_files, 'infra/docker/internal') || null }}
51
+ should-build-search-docker : ${{ contains(steps.changed-docker-files.outputs.all_modified_files, 'infra/docker/search') || null }}
51
52
# Terraform accounts
52
53
should-plan-terraform-accounts : ${{ steps.changed-accounts-terraform-files.outputs.any_modified == 'true' || null }}
53
54
should-plan-nonprod-account-terraform : ${{ contains(steps.changed-accounts-terraform-files.outputs.all_modified_files, 'infra/terraform/modules') || contains(steps.changed-accounts-terraform-files.outputs.all_modified_files, 'infra/terraform/accounts/nonprod') || null }}
@@ -142,6 +143,7 @@ jobs:
142
143
selfserve : ${{ steps.selfserve-version.outputs.version }}
143
144
internal : ${{ steps.internal-version.outputs.version }}
144
145
assets : ${{ steps.assets-version.outputs.version }}
146
+ search : ${{ steps.search-version.outputs.version }}
145
147
steps :
146
148
- uses : actions/checkout@v4
147
149
with :
@@ -167,13 +169,18 @@ jobs:
167
169
uses : dvsa/.github/.github/actions/get-vol-app-version@v5.0.3
168
170
with :
169
171
project-path : app/cdn
172
+ - id : search-version
173
+ uses : dvsa/.github/.github/actions/get-vol-app-version@v5.0.3
174
+ with :
175
+ project-path : infra/docker/search
170
176
- name : Add to summary
171
177
run : |
172
178
echo "#### App versions:" >> $GITHUB_STEP_SUMMARY
173
179
echo "**API**: \`${{ steps.api-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
174
180
echo "**Selfserve**: \`${{ steps.selfserve-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
175
181
echo "**Internal**: \`${{ steps.internal-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
176
182
echo "**Assets**: \`${{ steps.assets-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
183
+ echo "**Search**: \`${{ steps.search-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
177
184
178
185
cdn :
179
186
name : CDN
@@ -193,7 +200,11 @@ jobs:
193
200
194
201
app :
195
202
name : App
196
- if : ${{ needs.orchestrator.outputs.should-build-app || needs.orchestrator.outputs.should-build-docker }}
203
+ if : >
204
+ needs.orchestrator.outputs.should-build-app ||
205
+ needs.orchestrator.outputs.should-build-api-docker ||
206
+ needs.orchestrator.outputs.should-build-selfserve-docker ||
207
+ needs.orchestrator.outputs.should-build-internal-docker
197
208
concurrency :
198
209
group : app-${{ matrix.project }}-${{ needs.get-version.outputs[matrix.project] }}
199
210
needs :
@@ -221,13 +232,27 @@ jobs:
221
232
222
233
docker :
223
234
name : Docker
224
- if : ${{ always() && !cancelled() && !failure() && needs.orchestrator.outputs.should-build-docker }}
235
+ if : >
236
+ always() &&
237
+ !cancelled() &&
238
+ needs.orchestrator.outputs.should-build-docker &&
239
+ needs.security-app.result != 'failure' &&
240
+ needs.security-terraform.result != 'failure' &&
241
+ needs.orchestrator.result != 'failure' &&
242
+ needs.docs.result != 'failure' &&
243
+ needs.cdn.result != 'failure' &&
244
+ needs.app.result != 'failure' &&
245
+ needs.get-version.result != 'failure'
225
246
concurrency :
226
247
group : docker-${{ matrix.project }}-${{ needs.get-version.outputs[matrix.project] }}
227
248
needs :
249
+ - security-app
250
+ - security-terraform
228
251
- orchestrator
229
- - get-version
252
+ - docs
253
+ - cdn
230
254
- app
255
+ - get-version
231
256
strategy :
232
257
fail-fast : false
233
258
matrix :
@@ -236,11 +261,13 @@ jobs:
236
261
- cli
237
262
- selfserve
238
263
- internal
264
+ - search
239
265
exclude :
240
266
- project : ${{ needs.orchestrator.outputs.should-build-api-docker && 'ignored' || 'api' }}
241
267
- project : ${{ needs.orchestrator.outputs.should-build-cli-docker && 'ignored' || 'cli' }}
242
268
- project : ${{ needs.orchestrator.outputs.should-build-selfserve-docker && 'ignored' || 'selfserve' }}
243
269
- project : ${{ needs.orchestrator.outputs.should-build-internal-docker && 'ignored' || 'internal' }}
270
+ - project : ${{ needs.orchestrator.outputs.should-build-search-docker && 'ignored' || 'search' }}
244
271
uses : ./.github/workflows/docker.yaml
245
272
with :
246
273
project : ${{ matrix.project }}
@@ -328,6 +355,7 @@ jobs:
328
355
selfserve-image-tag : ${{ needs.get-version.outputs.selfserve }}
329
356
internal-image-tag : ${{ needs.get-version.outputs.internal }}
330
357
assets-version : ${{ needs.get-version.outputs.assets }}
358
+ search-image-tag : ${{ needs.get-version.outputs.search }}
331
359
permissions :
332
360
contents : read
333
361
id-token : write
0 commit comments