@@ -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