23
23
- name : output-image
24
24
value : quay.io/redhat-user-workloads/ansible-automationhu-tenant/automation-hub-master/automation-hub-frontend-master:{{revision}}
25
25
- name : dockerfile
26
- value : Dockerfile
26
+ value : build-tools/ Dockerfile
27
27
- name : path-context
28
28
value : .
29
+ - name : build-args
30
+ value :
31
+ - NPM_BUILD_SCRIPT=build-insights
29
32
pipelineSpec :
30
33
description : |
31
34
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.
@@ -208,68 +211,6 @@ spec:
208
211
workspace : git-auth
209
212
- name : netrc
210
213
workspace : netrc
211
- # put this before the "build-container" task in your repository
212
- - name : parse-build-deploy-script
213
- params :
214
- - name : path-context
215
- value : $(params.path-context)
216
- taskRef :
217
- resolver : git
218
- params :
219
- - name : url
220
- value : https://github.com/RedHatInsights/konflux-consoledot-frontend-build
221
- - name : revision
222
- value : e0b400ca6433f1ff05722c412ab837c4bd49a45a # replace with the latest commit from https://github.com/RedHatInsights/konflux-consoledot-frontend-build/commits
223
- - name : pathInRepo
224
- value : tasks/parse-build-deploy-script/parse-build-deploy-script.yaml
225
- workspaces :
226
- - name : source
227
- workspace : workspace
228
- runAfter :
229
- - clone-repository
230
- - name : create-frontend-dockerfile
231
- taskRef :
232
- resolver : git
233
- params :
234
- - name : url
235
- value : https://github.com/RedHatInsights/konflux-consoledot-frontend-build
236
- - name : revision
237
- value : e0b400ca6433f1ff05722c412ab837c4bd49a45a # replace with the latest commit from https://github.com/RedHatInsights/konflux-consoledot-frontend-build/commits
238
- - name : pathInRepo
239
- value : tasks/create-frontend-dockerfile/create-frontend-dockerfile.yaml
240
- workspaces :
241
- - name : source
242
- workspace : workspace
243
- params :
244
- - name : path-context
245
- value : $(params.path-context)
246
- - name : component
247
- value : $(tasks.parse-build-deploy-script.results.component)
248
- - name : image
249
- value : $(tasks.parse-build-deploy-script.results.image)
250
- - name : node-build-version
251
- value : $(tasks.parse-build-deploy-script.results.node-build-version)
252
- - name : quay-expire-time
253
- value : $(tasks.parse-build-deploy-script.results.quay-expire-time)
254
- - name : npm-build-script
255
- value : $(tasks.parse-build-deploy-script.results.npm-build-script)
256
- - name : yarn-build-script
257
- value : $(tasks.parse-build-deploy-script.results.yarn-build-script)
258
- - name : route-path
259
- value : $(tasks.parse-build-deploy-script.results.route-path)
260
- - name : beta-route-path
261
- value : $(tasks.parse-build-deploy-script.results.beta-route-path)
262
- - name : preview-route-path
263
- value : $(tasks.parse-build-deploy-script.results.preview-route-path)
264
- - name : ci-root
265
- value : $(tasks.parse-build-deploy-script.results.ci-root)
266
- - name : server-name
267
- value : $(tasks.parse-build-deploy-script.results.server-name)
268
- - name : dist-folder
269
- value : $(tasks.parse-build-deploy-script.results.dist-folder)
270
- runAfter :
271
- - parse-build-deploy-script
272
- # update the build-container task so that the runAfter section includes "- create-frontend-dockerfile"
273
214
- name : build-container
274
215
params :
275
216
- name : IMAGE
@@ -293,7 +234,6 @@ spec:
293
234
value : $(params.build-args-file)
294
235
runAfter :
295
236
- prefetch-dependencies
296
- - create-frontend-dockerfile
297
237
taskRef :
298
238
params :
299
239
- name : name
@@ -456,6 +396,56 @@ spec:
456
396
workspaces :
457
397
- name : workspace
458
398
workspace : workspace
399
+ - name : sast-shell-check
400
+ params :
401
+ - name : image-digest
402
+ value : $(tasks.build-image-index.results.IMAGE_DIGEST)
403
+ - name : image-url
404
+ value : $(tasks.build-image-index.results.IMAGE_URL)
405
+ runAfter :
406
+ - build-image-index
407
+ taskRef :
408
+ params :
409
+ - name : name
410
+ value : sast-shell-check
411
+ - name : bundle
412
+ value : quay.io/konflux-ci/tekton-catalog/task-sast-shell-check:0.1@sha256:188a4f6a582ac43d4de46c3998ded3c2a8ee237fb0604d90559a3b6e0aa62b0f
413
+ - name : kind
414
+ value : task
415
+ resolver : bundles
416
+ when :
417
+ - input : $(params.skip-checks)
418
+ operator : in
419
+ values :
420
+ - " false"
421
+ workspaces :
422
+ - name : workspace
423
+ workspace : workspace
424
+ - name : sast-unicode-check
425
+ params :
426
+ - name : image-digest
427
+ value : $(tasks.build-image-index.results.IMAGE_DIGEST)
428
+ - name : image-url
429
+ value : $(tasks.build-image-index.results.IMAGE_URL)
430
+ runAfter :
431
+ - build-image-index
432
+ taskRef :
433
+ params :
434
+ - name : name
435
+ value : sast-unicode-check
436
+ - name : bundle
437
+ value : quay.io/konflux-ci/tekton-catalog/task-sast-unicode-check:0.2@sha256:e4a5215b45b1886a185a9db8ab392f8440c2b0848f76d719885637cf8d2628ed
438
+ - name : kind
439
+ value : task
440
+ resolver : bundles
441
+ when :
442
+ - input : $(params.skip-checks)
443
+ operator : in
444
+ values :
445
+ - " false"
446
+ workspaces :
447
+ - name : workspace
448
+ workspace : workspace
459
449
- name : clamav-scan
460
450
params :
461
451
- name : image-digest
0 commit comments