Skip to content

Commit 28e9467

Browse files
author
serverless-qe
committed
[release-v1.21] Sync Konflux configurations
1 parent e688e7c commit 28e9467

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.tekton/docker-build.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ spec:
8787
- default: "false"
8888
description: Enable cache proxy configuration
8989
name: enable-cache-proxy
90+
- default: "true"
91+
description: Use the package registry proxy when prefetching dependencies
92+
name: enable-package-registry-proxy
93+
- default: .
94+
description: Target directories in component's source code to scan with SAST tools.
95+
Multiple values should be separated with commas.
96+
name: sast-target-dirs
97+
type: string
9098
- default: []
9199
description: Array of --build-arg values ("arg=value" strings) for buildah
92100
name: build-args
@@ -100,6 +108,22 @@ spec:
100108
VMs
101109
name: privileged-nested
102110
type: string
111+
- default: ""
112+
description: Sets the image created time and the SOURCE_DATE_EPOCH build argument.
113+
On its own, it does not change file timestamps inside the layers (set rewrite-timestamp
114+
to "true" for that). Leave empty to keep the actual build time.
115+
name: source-date-epoch
116+
type: string
117+
- default: "false"
118+
description: When "true", clamp file modification times in the image layers to
119+
at most source-date-epoch. Does nothing unless source-date-epoch is set.
120+
name: rewrite-timestamp
121+
type: string
122+
- default: "false"
123+
description: When "true", omit the build history (history timestamps, layer metadata,
124+
etc.) from the resulting image.
125+
name: omit-history
126+
type: string
103127
results:
104128
- description: ""
105129
name: IMAGE_URL
@@ -122,6 +146,8 @@ spec:
122146
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
123147
- name: image-url
124148
value: $(tasks.build-image-index.results.IMAGE_URL)
149+
- name: TARGET_DIRS
150+
value: $(params.sast-target-dirs)
125151
- name: SOURCE_ARTIFACT
126152
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
127153
- name: CACHI2_ARTIFACT
@@ -148,6 +174,8 @@ spec:
148174
value: $(params.prefetch-input-dev-package-managers)
149175
- name: input
150176
value: $(params.prefetch-input)
177+
- name: enable-package-registry-proxy
178+
value: $(params.enable-package-registry-proxy)
151179
- name: SOURCE_ARTIFACT
152180
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
153181
- name: ociStorage
@@ -262,6 +290,12 @@ spec:
262290
value: $(tasks.init.results.http-proxy)
263291
- name: NO_PROXY
264292
value: $(tasks.init.results.no-proxy)
293+
- name: SOURCE_DATE_EPOCH
294+
value: $(params.source-date-epoch)
295+
- name: REWRITE_TIMESTAMP
296+
value: $(params.rewrite-timestamp)
297+
- name: OMIT_HISTORY
298+
value: $(params.omit-history)
265299
- name: SOURCE_ARTIFACT
266300
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
267301
- name: CACHI2_ARTIFACT
@@ -434,6 +468,8 @@ spec:
434468
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
435469
- name: image-url
436470
value: $(tasks.build-image-index.results.IMAGE_URL)
471+
- name: TARGET_DIRS
472+
value: $(params.sast-target-dirs)
437473
- name: SOURCE_ARTIFACT
438474
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
439475
- name: CACHI2_ARTIFACT
@@ -460,6 +496,8 @@ spec:
460496
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
461497
- name: image-url
462498
value: $(tasks.build-image-index.results.IMAGE_URL)
499+
- name: TARGET_DIRS
500+
value: $(params.sast-target-dirs)
463501
- name: SOURCE_ARTIFACT
464502
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
465503
- name: CACHI2_ARTIFACT

0 commit comments

Comments
 (0)