-
-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document reproducible builds (#1809)
Fixes #1808 RELEASE_NOTES=n/a Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
- Loading branch information
1 parent
13b6c18
commit ffaa9e3
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.17-alpine AS build-env | ||
|
||
ENV CGO_ENABLED 0 | ||
|
||
RUN apk add --no-cache make git ncurses | ||
|
||
WORKDIR /home/runner/work/gopass/gopass | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
ARG golags_arg="" | ||
ENV GOFLAGS=$goflags_arg | ||
|
||
RUN make clean | ||
RUN make gopass | ||
|
||
FROM alpine:3.15 | ||
RUN apk add --no-cache ca-certificates git gnupg | ||
COPY --from=build-env /home/runner/work/gopass/gopass/gopass /usr/local/bin/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters