File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 61
61
uses : docker/build-push-action@v4
62
62
with :
63
63
context : .
64
- platforms : linux/amd64,linux/arm64,linux/s390x
64
+ platforms : linux/amd64,linux/arm64
65
65
push : true
66
66
tags : ${{ steps.meta.outputs.tags }}
67
67
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1
1
FROM golang:1.21 as builder
2
+
3
+ ARG TARGETPLATFORM
4
+ ARG BUILDPLATFORM
5
+ RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"
6
+
7
+ LABEL org.opencontainers.image.source = https://github.com/cloudflare/gokeyless
8
+ LABEL org.opencontainers.image.description = "Cloudflare's Gokeyless"
9
+
10
+ ARG TARGETOS
11
+ ARG TARGETARCH
12
+
2
13
WORKDIR /gokeyless
3
14
COPY . .
4
- RUN env GOOS=linux GOARCH=amd64 make gokeyless
15
+ RUN env GOOS=${TARGETOS} GOARCH=${TARGETARCH} make gokeyless
5
16
6
17
FROM golang:1.21
7
18
WORKDIR /gokeyless
8
19
COPY --from=builder /gokeyless/gokeyless gokeyless
9
- ENTRYPOINT ["./gokeyless" ]
20
+ ENTRYPOINT ["./gokeyless" ]
21
+
22
+
23
+
You can’t perform that action at this time.
0 commit comments