Skip to content

Commit

Permalink
[release-v1.15] Use signed artifacts in cli image (knative#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimansk authored Nov 28, 2024
1 parent 9e75c93 commit f5b5ad7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .tekton/kn-client-cli-artifacts-115-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
- GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
- JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
- JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
- CLI_ARTIFACTS=brew.registry.redhat.io/rh-osbs/openshift-serverless-1-kn-cli-artifacts-rhel8:1.15.0
- name: git-url
value: '{{source_url}}'
- name: hermetic
Expand Down
1 change: 1 addition & 0 deletions .tekton/kn-client-cli-artifacts-115-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
- JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
- JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
- CLI_ARTIFACTS=brew.registry.redhat.io/rh-osbs/openshift-serverless-1-kn-cli-artifacts-rhel8:1.15.0
- name: git-url
value: '{{source_url}}'
- name: hermetic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# This is not generated Dockerfile, yet!
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
ARG CLI_ARTIFACTS=registry.redhat.io/openshift-serverless-1/kn-cli-artifacts-rhel8:1.14

FROM $CLI_ARTIFACTS
FROM $CLI_ARTIFACTS as builder

FROM $GO_RUNTIME

ARG VERSION=knative-v1.15

RUN mkdir -p /usr/share/kn

COPY --from=builder /usr/share/kn /usr/share/kn
COPY LICENSE /licenses/

USER 65532
Expand Down

0 comments on commit f5b5ad7

Please sign in to comment.