Skip to content

Commit b5758ec

Browse files
committed
Fix version in konflux build
1 parent 751e427 commit b5758ec

File tree

2 files changed

+55
-21
lines changed

2 files changed

+55
-21
lines changed

.tekton/pipeline-ref.yaml

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
- name: name
1414
value: show-sbom
1515
- name: bundle
16-
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:945a7c9066d3e0a95d3fddb7e8a6992e4d632a2a75d8f3a9bd2ff2fef0ec9aa0
16+
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:52f8b96b96ce4203d4b74d850a85f963125bf8eef0683ea5acdd80818d335a28
1717
- name: kind
1818
value: task
1919
resolver: bundles
@@ -81,10 +81,10 @@ spec:
8181
results:
8282
- description: ""
8383
name: IMAGE_URL
84-
value: $(tasks.build-container.results.IMAGE_URL)
84+
value: $(tasks.build-image-index.results.IMAGE_URL)
8585
- description: ""
8686
name: IMAGE_DIGEST
87-
value: $(tasks.build-container.results.IMAGE_DIGEST)
87+
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
8888
- description: ""
8989
name: CHAINS-GIT_URL
9090
value: $(tasks.clone-repository.results.url)
@@ -108,7 +108,7 @@ spec:
108108
- name: name
109109
value: init
110110
- name: bundle
111-
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:0523b51c28375a3f222da91690e22eff11888ebc98a0c73c468af44762265c69
111+
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:f239f38bba3a8351c8cb0980fde8e2ee477ded7200178b0f45175e4006ff1dca
112112
- name: kind
113113
value: task
114114
resolver: bundles
@@ -129,7 +129,7 @@ spec:
129129
- name: name
130130
value: git-clone-oci-ta
131131
- name: bundle
132-
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:4bf48d038ff12d25bdeb5ab3e98dc2271818056f454c83d7393ebbd413028147
132+
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:d1e63ec00bed1c9f0f571fa76b4da570be49a7c255c610544a461495230ba1b1
133133
- name: kind
134134
value: task
135135
resolver: bundles
@@ -158,7 +158,7 @@ spec:
158158
- name: name
159159
value: prefetch-dependencies-oci-ta
160160
- name: bundle
161-
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:b1ac9124ad909a8d7dbac01b1a02ef9a973d448d4c94efcf3d1b29e2a5c9e76f
161+
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:3c11f5de6a0281bf93857f0c85bbbdfeda4cc118337da273fef0c138bda5eebb
162162
- name: kind
163163
value: task
164164
resolver: bundles
@@ -196,7 +196,9 @@ spec:
196196
- name: BUILD_ARGS
197197
value:
198198
- $(params.build-args[*])
199-
- "COMMIT=tasks.clone-repository.results.commit"
199+
- "COMMIT=$(tasks.clone-repository.results.commit)"
200+
- "BUILDVERSION=1.7.1"
201+
- "DATE=$(tasks.clone-repository.results.commit-timestamp)"
200202
- name: BUILD_ARGS_FILE
201203
value: $(params.build-args-file)
202204
- name: SOURCE_ARTIFACT
@@ -212,7 +214,7 @@ spec:
212214
- name: name
213215
value: buildah-remote-oci-ta
214216
- name: bundle
215-
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:52a1a93cf99ab1f1092e983ac41b3684b7af004772d325e89b42e82e046bc7d1
217+
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:cfc8f89bc984ae8309df82ac15cc6e302832f48f51cc0bde56edb4f43e57ffcf
216218
- name: kind
217219
value: task
218220
resolver: bundles
@@ -241,7 +243,7 @@ spec:
241243
- name: name
242244
value: build-image-index
243245
- name: bundle
244-
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:ebc17bb22481160eec6eb7277df1e48b90f599bebe563cd4f046807f4e32ced3
246+
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:5da8c2f09990b801f1fd02a0ab3c4136845661e53c98e8a7ebf720774e064fac
245247
- name: kind
246248
value: task
247249
resolver: bundles
@@ -266,7 +268,7 @@ spec:
266268
- name: name
267269
value: source-build-oci-ta
268270
- name: bundle
269-
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.1@sha256:bd786bc1d33391bb169f98a1070d1a39e410b835f05fd0db0263754c65bd9bea
271+
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.1@sha256:178298b5c8bbc2f8fa91ef94aca57a5a2dcb3834c71c8835bae51a20fe30e4e7
270272
- name: kind
271273
value: task
272274
resolver: bundles
@@ -292,7 +294,29 @@ spec:
292294
- name: name
293295
value: deprecated-image-check
294296
- name: bundle
295-
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.4@sha256:5a1a165fa02270f0a947d8a2131ee9d8be0b8e9d34123828c2bef589e504ee84
297+
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.4@sha256:443ffa897ee35e416a0bfd39721c68cbf88cfa5c74c843c5183218d0cd586e82
298+
- name: kind
299+
value: task
300+
resolver: bundles
301+
when:
302+
- input: $(params.skip-checks)
303+
operator: in
304+
values:
305+
- "false"
306+
- name: rpms-signature-scan
307+
params:
308+
- name: image-url
309+
value: $(tasks.build-image-index.results.IMAGE_URL)
310+
- name: image-digest
311+
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
312+
runAfter:
313+
- build-image-index
314+
taskRef:
315+
params:
316+
- name: name
317+
value: rpms-signature-scan
318+
- name: bundle
319+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:7aa4d3c95e2b963e82fdda392f7cb3d61e3dab035416cf4a3a34e43cf3c9c9b8
296320
- name: kind
297321
value: task
298322
resolver: bundles
@@ -314,7 +338,7 @@ spec:
314338
- name: name
315339
value: clair-scan
316340
- name: bundle
317-
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:0a5421111e7092740398691d5bd7c125cc0896f29531d19414bb5724ae41692a
341+
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:90e371fe7ec2288259a906bc1fd49c53b8b97a0b0b02da0893fb65e3be2a5801
318342
- name: kind
319343
value: task
320344
resolver: bundles
@@ -334,7 +358,7 @@ spec:
334358
- name: name
335359
value: ecosystem-cert-preflight-checks
336360
- name: bundle
337-
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.1@sha256:df8a25a3431a70544172ed4844f9d0c6229d39130633960729f825a031a7dea9
361+
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.1@sha256:5131cce0f93d0b728c7bcc0d6cee4c61d4c9f67c6d619c627e41e3c9775b497d
338362
- name: kind
339363
value: task
340364
resolver: bundles
@@ -360,7 +384,7 @@ spec:
360384
- name: name
361385
value: sast-snyk-check-oci-ta
362386
- name: bundle
363-
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.3@sha256:65a213322ea7c64159e37071d369d74b6378b23403150e29537865cada90f022
387+
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.3@sha256:699cfad1caaa4060f0a6de5d5fb376bf2eb90967d89ec4ffef328fd358ac966d
364388
- name: kind
365389
value: task
366390
resolver: bundles
@@ -382,7 +406,7 @@ spec:
382406
- name: name
383407
value: clamav-scan
384408
- name: bundle
385-
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.1@sha256:b4f450f1447b166da671f1d5819ab5a1485083e5c27ab91f7d8b7a2ff994c8c2
409+
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.1@sha256:1981b5aa330a4d59f59d760e54a36ebd596948abf6a36e45e103d4fd82ecbcf3
386410
- name: kind
387411
value: task
388412
resolver: bundles
@@ -425,7 +449,7 @@ spec:
425449
- name: name
426450
value: push-dockerfile-oci-ta
427451
- name: bundle
428-
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:80d48a1b9d2707490309941ec9f79338533938f959ca9a207b481b0e8a5e7a93
452+
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:eee2eb7b5ce2e55dde37114fefe842080c8a8e443dcc2ccf324cfb22b0453db4
429453
- name: kind
430454
value: task
431455
resolver: bundles

contrib/docker/Dockerfile.downstream

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,33 @@ ARG COMMIT
33
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22.5-202407301806.g4c8b32d.el9 as builder
44

55
ARG TARGETARCH=amd64
6-
ARG LDFLAGS
6+
ARG BUILDVERSION
7+
ARG DATE
8+
79
WORKDIR /app
810

911
# Copy source code
1012
COPY go.mod .
1113
COPY go.sum .
14+
COPY Makefile .
15+
COPY .mk/ .mk/
16+
COPY .bingo/ .bingo/
1217
COPY vendor/ vendor/
18+
COPY .git/ .git/
1319
COPY cmd/ cmd/
1420
COPY pkg/ pkg/
1521

16-
RUN GOARCH=$TARGETARCH go build -ldflags "$LDFLAGS" -mod vendor -o flowlogs-pipeline cmd/flowlogs-pipeline/main.go
22+
RUN git status --porcelain
23+
RUN GOARCH=$TARGETARCH go build -ldflags "-X main.BuildVersion=$BUILDVERSION -X main.BuildDate=$DATE" "./cmd/flowlogs-pipeline"
1724

1825
# final stage
19-
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.4
26+
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.5
27+
28+
ARG COMMIT
2029

2130
COPY --from=builder /app/flowlogs-pipeline /app/
2231

32+
# expose ports
2333
ENTRYPOINT ["/app/flowlogs-pipeline"]
2434

2535
LABEL com.redhat.component="network-observability-flowlogs-pipeline-container"
@@ -30,5 +40,5 @@ LABEL summary="Network Observability Flow-Logs Pipeline"
3040
LABEL maintainer="[email protected]"
3141
LABEL io.openshift.tags="network-observability-flowlogs-pipeline"
3242
LABEL upstream-vcs-type="git"
33-
LABEL upstream-vcs-type="$COMMIT"
34-
LABEL description="Flow-Logs Pipeline is an observability tool that consumes logs from various inputs, transform them and export logs to Loki and / or metrics to Prometheus."
43+
LABEL upstream-vcs-ref="$COMMIT"
44+
LABEL description="Flow-Logs Pipeline (a.k.a. FLP) is an observability tool that consumes logs from various inputs, transform them and export logs to loki and / or time series metrics to prometheus."

0 commit comments

Comments
 (0)