-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-arch build. Update goreleaser. Use Docker for goreleaser (#191)
* do a multi-arch build and use goreleaser * update dockerfile for goreleaser * use moar resources * fix homebrew * update dockerfile
- Loading branch information
Andrew Suderman
authored
Aug 19, 2021
1 parent
033af38
commit fb98229
Showing
4 changed files
with
113 additions
and
65 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,6 @@ | ||
FROM golang:1.16 AS build-env | ||
WORKDIR /go/src/github.com/fairwindsops/pluto/ | ||
|
||
ARG version=dev | ||
ARG commit=none | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN go get github.com/markbates/pkger/cmd/pkger | ||
RUN VERSION=$version COMMIT=$commit make build-linux | ||
|
||
FROM alpine:3.13 | ||
RUN apk --no-cache --update add ca-certificates tzdata && update-ca-certificates | ||
FROM alpine:3.14 | ||
|
||
USER nobody | ||
COPY --from=build-env /go/src/github.com/fairwindsops/pluto / | ||
COPY pluto / | ||
|
||
WORKDIR /opt/app | ||
ENTRYPOINT ["/pluto"] |
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