Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .konflux/Containerfile.plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2023 Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ------------------------------------------------------------------------
FROM registry.redhat.io/openshift4/ose-must-gather:v4.13.0

LABEL \
name="openshift-gitops-1/must-gather-rhel8" \
License="Apache 2.0" \
com.redhat.component="openshift-gitops-must-gather-container" \
com.redhat.delivery.appregistry="false" \
upstream-vcs-type="git" \
summary="OpenShift GitOps Must Gather" \
maintainer="William Tam <wtam@redhat.com>" \
io.k8s.display-name="Red Hat OpenShift GitOps Must Gather"\
io.openshift.tags="openshift,gitops-operator, must-gather" \
io.openshift.maintainer.product="Red Hat OpenShift GitOps" \
io.openshift.maintainer.component="William Tam <wtam@redhat.com>"

# Save original gather script
RUN mv /usr/bin/gather /usr/bin/gather_original

COPY gather_gitops.sh /usr/bin/gather

# Make it executable
RUN chmod +x /usr/bin/gather

ENTRYPOINT /usr/bin/gather
8 changes: 7 additions & 1 deletion .tekton/gitops-must-gather-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ spec:
value:
- linux/x86_64
- name: dockerfile
value: Dockerfile
value: .konflux/Containerfile.plugin
- name: hermetic
value: "true"
pipelineSpec:
description: |
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
Expand Down Expand Up @@ -232,6 +234,10 @@ spec:
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
- name: IMAGE_APPEND_PLATFORM
value: "true"
- name: LABELS
value:
- upstream-source-url=$(tasks.clone-repository.results.url)
- upstream-source-ref=$(tasks.clone-repository.results.commit)
runAfter:
- prefetch-dependencies
taskRef:
Expand Down
11 changes: 10 additions & 1 deletion .tekton/gitops-must-gather-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ spec:
- name: build-platforms
value:
- linux/x86_64
- linux/arm64
- linux/ppc64le
- linux/s390x
- name: dockerfile
value: Dockerfile
value: .konflux/Containerfile.plugin
- name: hermetic
value: "true"
pipelineSpec:
description: |
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
Expand Down Expand Up @@ -229,6 +234,10 @@ spec:
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
- name: IMAGE_APPEND_PLATFORM
value: "true"
- name: LABELS
value:
- upstream-source-url=$(tasks.clone-repository.results.url)
- upstream-source-ref=$(tasks.clone-repository.results.commit)
runAfter:
- prefetch-dependencies
taskRef:
Expand Down
Loading