Skip to content

Commit 12e3236

Browse files
committed
ci: support multi-arch docker builds with QEMU/Buildx in release job
1 parent 91c6190 commit 12e3236

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ jobs:
131131
with:
132132
go-version-file: 'go.mod'
133133

134+
- name: Set up QEMU
135+
uses: docker/setup-qemu-action@v2
136+
137+
- name: Set up Docker Buildx
138+
uses: docker/setup-buildx-action@v2
139+
134140
- name: Login to GHCR
135141
uses: docker/login-action@v2
136142
with:

.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dockers:
5555
image_templates:
5656
- "ghcr.io/dmirtillo/rcon-cli:{{ .Version }}-amd64"
5757
dockerfile: build/docker/Dockerfile.goreleaser
58+
use: buildx
5859
build_flag_templates:
5960
- "--platform=linux/amd64"
6061
- id: rcon-arm64
@@ -63,6 +64,7 @@ dockers:
6364
image_templates:
6465
- "ghcr.io/dmirtillo/rcon-cli:{{ .Version }}-arm64"
6566
dockerfile: build/docker/Dockerfile.goreleaser
67+
use: buildx
6668
build_flag_templates:
6769
- "--platform=linux/arm64"
6870

0 commit comments

Comments
 (0)