Skip to content

Commit

Permalink
ci: package plugin binary in docker container (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: Kostis Kapelonis <[email protected]>
  • Loading branch information
kostis-codefresh authored Jan 9, 2025
1 parent 1b38893 commit 473890c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM --platform=$BUILDPLATFORM golang:1.22.5 AS builder

ENV GO111MODULE=on
ARG TARGETARCH

WORKDIR /app

COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags "-s -w" -o rollouts-plugin-trafficrouter-gatewayapi .

FROM alpine:3.19.0

ARG TARGETARCH

USER 999

COPY --from=builder /app/rollouts-plugin-trafficrouter-gatewayapi /bin/

0 comments on commit 473890c

Please sign in to comment.