-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nxcc
committed
Aug 23, 2023
1 parent
ccfbe5b
commit 525829f
Showing
3 changed files
with
46 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
FROM golang:1.20 as builder | ||
FROM golang:1.21 as builder | ||
WORKDIR /go/src/app | ||
ARG VERSION | ||
COPY . ./ | ||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X 'main.build=$VERSION'" -o cuegen . | ||
RUN sed "s/VERSION/$VERSION/g" docker/plugin.yaml > plugin.yaml | ||
RUN curl -sfL https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_amd64 -o /tmp/yq && chmod 755 /tmp/yq | ||
|
||
FROM gcr.io/distroless/static-debian11 | ||
COPY --from=builder /tmp/yq /bin/yq | ||
COPY --from=builder /go/src/app/cuegen /bin/cuegen | ||
COPY --from=builder /go/src/app/plugin.yaml /home/argocd/cmp-server/config/plugin.yaml |
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