Skip to content

Commit

Permalink
[konflux] Build bundle hermetically
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Gil <[email protected]>
  • Loading branch information
jordigilh committed Oct 8, 2024
1 parent d24c2f0 commit c9ed34a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bundle.konflux.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ FROM registry.access.redhat.com/ubi9:latest as builder
ARG IMG=registry.redhat.io/rhdh-orchestrator-dev-preview-beta/controller-rhel9-operator@sha256:9f4671e180ea94a47fcb235cd7edea0eccae0667c14f8a453642eedf492f41da
WORKDIR /operator
COPY . .
RUN dnf install make -y && make bundle IMG=${IMG}
RUN VERSION=$(grep "^VERSION ?=" Makefile | awk -F'= ' '{print $2}') && \
IMAGE_TAG_BASE=$(grep "^IMAGE_TAG_BASE ?=" Makefile | awk -F'= ' '{print $2}') && \
sed -i 's|version: .*|version: '${VERSION}'|; s|name: orchestrator-operator.v.*|name: orchestrator-operator.v.'${VERSION}'|; s|image: '${IMAGE_TAG_BASE}'|image: '$IMG'|' bundle/manifests/orchestrator-operator.clusterserviceversion.yaml

# Build bundle
FROM scratch

USER 1001
Expand Down

0 comments on commit c9ed34a

Please sign in to comment.