Skip to content

Commit

Permalink
Image change to debian
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Sharma <[email protected]>
  • Loading branch information
Dr-N00B committed Oct 13, 2023
1 parent cb5fa52 commit ba84e4d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ BUILD_GOLANG:
ARG SRC

IF $FIPS_ENABLED
RUN go-build-fips.sh -a -o ${BIN} ./${SRC}
RUN assert-fips.sh ${BIN}
RUN assert-static.sh ${BIN}
ARG LDFLAGS=-s -w -linkmode=external -extldflags=-static
ENV CGO_ENABLED=1
ENV GOEXPERIMENT=boringcrypto
ELSE
RUN go-build.sh -a -o ${BIN} ./${SRC}
ARG LDFLAGS=-s -w
ENV CGO_ENABLED=0
END

RUN go build -ldflags "${LDFLAGS}" -o ${BIN} ./${SRC}
Expand Down

0 comments on commit ba84e4d

Please sign in to comment.