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 7, 2025
1 parent 64eb282 commit 15fbb54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
value: build/Dockerfile.rhtap
- 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/governance-policy-addon-controller-acm-213-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
value: build/Dockerfile.rhtap
- 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: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ gosec-scan:

.PHONY: build
build: ## Build manager binary.
CGO_ENABLED=1 go build -o build/_output/bin/$(IMG) main.go
CGO_ENABLED=1 go build -mod=readonly -o build/_output/bin/$(IMG) main.go

############################################################
# images section
Expand Down
1 change: 0 additions & 1 deletion build/Dockerfile.rhtap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ENV COMPONENT=governance-policy-addon-controller
ENV REPO_PATH=/go/src/github.com/stolostron/${COMPONENT}
WORKDIR ${REPO_PATH}
COPY . .
RUN go mod vendor
RUN make build

# Stage 2: Copy the binaries from the image builder to the base image
Expand Down

0 comments on commit 15fbb54

Please sign in to comment.