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
2 changes: 1 addition & 1 deletion Dockerfile.konflux
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ USER root

COPY ./yq .

RUN CGO_ENABLED=0 go build -ldflags "-s -w" .
RUN CGO_ENABLED=1 GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -ldflags "-s -w" .

# Runtime stage
FROM registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ SHELL = /usr/bin/env bash -o pipefail
# Build the binary
.PHONY: build
build:
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) \
go build -ldflags "$(LDFLAGS)" -o $(BINARY_NAME) cmd/main.go
CGO_ENABLED=1 GOEXPERIMENT=strictfipsruntime GOOS=$(GOOS) GOARCH=$(GOARCH) \
go build -tags strictfipsruntime -ldflags "$(LDFLAGS)" -o $(BINARY_NAME) cmd/main.go

# Run the doctor command
.PHONY: run
Expand Down Expand Up @@ -134,4 +134,4 @@ help:
@echo " vulncheck - Run vulnerability scanner"
@echo " check - Run all checks (lint)"
@echo " test - Run tests"
@echo " help - Show this help message"
@echo " help - Show this help message"