Skip to content

Commit

Permalink
Enable hermetic builds
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Haiducek <[email protected]>
  • Loading branch information
dhaiducek committed Jan 27, 2025
1 parent 00903bb commit a24d9b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .tekton/gatekeeper-3-17-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
- linux/s390x
- name: path-context
value: .
- 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
2 changes: 2 additions & 0 deletions .tekton/gatekeeper-3-17-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
- linux-mlarge/arm64
- linux/ppc64le
- linux/s390x
- 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
6 changes: 5 additions & 1 deletion build/Dockerfile.rhtap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RUN go build -mod vendor -a -ldflags "${LDFLAGS}" -o manager
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
WORKDIR /
COPY --from=builder /go/src/github.com/open-policy-agent/gatekeeper/manager .
RUN microdnf -y update && microdnf -y clean all

RUN mkdir licenses/
COPY LICENSE licenses/

USER 65532:65532

ENTRYPOINT ["/manager"]

0 comments on commit a24d9b5

Please sign in to comment.