We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2feedbd commit b636402Copy full SHA for b636402
.github/workflows/publish.yml
@@ -38,6 +38,7 @@ jobs:
38
uses: docker/build-push-action@v4
39
with:
40
context: .
41
+ platforms: linux/amd64,linux/arm64
42
build-args: |
43
KOMPANION_VERSION=${{ steps.get_tag.outputs.TAG }}
44
push: true
Dockerfile
@@ -14,9 +14,11 @@ WORKDIR /app
14
ARG KOMPANION_VERSION=local
15
ENV KOMPANION_VERSION=$KOMPANION_VERSION
16
17
-RUN GOOS=linux GOARCH=amd64 \
+ARG TARGETARCH
18
+RUN GOOS=linux GOARCH=${TARGETARCH:-amd64} \
19
go build -ldflags "-X main.Version=$KOMPANION_VERSION" -tags migrate -o /bin/app ./cmd/app
20
21
+
22
# Step 3: Final
23
FROM golang:1.22.5-alpine
24
ENV GIN_MODE=release
0 commit comments