Skip to content

Commit e28cf07

Browse files
author
serverless-qe
committed
[release-1.38] Sync Konflux configurations
1 parent 905a9cc commit e28cf07

3 files changed

Lines changed: 94 additions & 2 deletions

File tree

‎.tekton/bundle-build.yaml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,22 @@ spec:
9999
VMs
100100
name: privileged-nested
101101
type: string
102+
- default: ""
103+
description: Sets the image created time and the SOURCE_DATE_EPOCH build argument.
104+
On its own, it does not change file timestamps inside the layers (set rewrite-timestamp
105+
to "true" for that). Leave empty to keep the actual build time.
106+
name: source-date-epoch
107+
type: string
108+
- default: "false"
109+
description: When "true", clamp file modification times in the image layers to
110+
at most source-date-epoch. Does nothing unless source-date-epoch is set.
111+
name: rewrite-timestamp
112+
type: string
113+
- default: "false"
114+
description: When "true", omit the build history (history timestamps, layer metadata,
115+
etc.) from the resulting image.
116+
name: omit-history
117+
type: string
102118
- default:
103119
- linux/x86_64
104120
description: List of platforms to build the container images on. The available
@@ -157,6 +173,12 @@ spec:
157173
value: $(tasks.init.results.http-proxy)
158174
- name: NO_PROXY
159175
value: $(tasks.init.results.no-proxy)
176+
- name: SOURCE_DATE_EPOCH
177+
value: $(params.source-date-epoch)
178+
- name: REWRITE_TIMESTAMP
179+
value: $(params.rewrite-timestamp)
180+
- name: OMIT_HISTORY
181+
value: $(params.omit-history)
160182
- name: SOURCE_ARTIFACT
161183
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
162184
- name: CACHI2_ARTIFACT

‎.tekton/docker-build.yaml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ spec:
108108
VMs
109109
name: privileged-nested
110110
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
111127
results:
112128
- description: ""
113129
name: IMAGE_URL
@@ -274,6 +290,12 @@ spec:
274290
value: $(tasks.init.results.http-proxy)
275291
- name: NO_PROXY
276292
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)
277299
- name: SOURCE_ARTIFACT
278300
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
279301
- name: CACHI2_ARTIFACT

‎.tekton/fbc-builder.yaml‎

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,22 @@ spec:
107107
description: Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
108108
name: build-args-file
109109
type: string
110+
- default: ""
111+
description: Sets the image created time and the SOURCE_DATE_EPOCH build argument.
112+
On its own, it does not change file timestamps inside the layers (set rewrite-timestamp
113+
to "true" for that). Leave empty to keep the actual build time.
114+
name: source-date-epoch
115+
type: string
116+
- default: "false"
117+
description: When "true", clamp file modification times in the image layers to
118+
at most source-date-epoch. Does nothing unless source-date-epoch is set.
119+
name: rewrite-timestamp
120+
type: string
121+
- default: "false"
122+
description: When "true", omit the build history (history timestamps, layer metadata,
123+
etc.) from the resulting image.
124+
name: omit-history
125+
type: string
110126
results:
111127
- description: ""
112128
name: IMAGE_URL
@@ -133,13 +149,13 @@ spec:
133149
- name: IDMS_PATH
134150
value: $(params.idms-path)
135151
- name: SOURCE_ARTIFACT
136-
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
152+
value: $(tasks.fbc-inject-lifecycle.results.SOURCE_ARTIFACT)
137153
- name: ociStorage
138154
value: $(params.output-image).opm
139155
- name: ociArtifactExpiresAfter
140156
value: $(params.image-expires-after)
141157
runAfter:
142-
- clone-repository
158+
- fbc-inject-lifecycle
143159
taskRef:
144160
params:
145161
- name: name
@@ -205,6 +221,32 @@ spec:
205221
workspaces:
206222
- name: basic-auth
207223
workspace: git-auth
224+
- name: fbc-inject-lifecycle
225+
params:
226+
- name: SOURCE_ARTIFACT
227+
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
228+
- name: ociStorage
229+
value: $(params.output-image).lifecycle
230+
- name: ociArtifactExpiresAfter
231+
value: $(params.image-expires-after)
232+
- name: CONTEXT
233+
value: $(params.path-context)
234+
- name: DOCKERFILE
235+
value: $(params.dockerfile)
236+
- name: BUILD_ARGS
237+
value:
238+
- $(params.build-args[*])
239+
runAfter:
240+
- clone-repository
241+
taskRef:
242+
params:
243+
- name: name
244+
value: fbc-inject-lifecycle-oci-ta
245+
- name: bundle
246+
value: quay.io/konflux-ci/tekton-catalog/task-fbc-inject-lifecycle-oci-ta:0.1@sha256:da1217be1dcec3d5b5140ea351466607005481397b31f2b81108c4fd3012fbde
247+
- name: kind
248+
value: task
249+
resolver: bundles
208250
- name: prefetch-dependencies
209251
params:
210252
- name: input
@@ -265,6 +307,12 @@ spec:
265307
value: $(tasks.init.results.http-proxy)
266308
- name: NO_PROXY
267309
value: $(tasks.init.results.no-proxy)
310+
- name: SOURCE_DATE_EPOCH
311+
value: $(params.source-date-epoch)
312+
- name: REWRITE_TIMESTAMP
313+
value: $(params.rewrite-timestamp)
314+
- name: OMIT_HISTORY
315+
value: $(params.omit-history)
268316
- name: SOURCE_ARTIFACT
269317
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
270318
- name: CACHI2_ARTIFACT

0 commit comments

Comments
 (0)