fix: configure Docker buildx for multi-platform builds

Added Docker buildx setup with docker-container driver to support
multi-platform Docker image builds in the release job.

Changes:
- Set up Docker buildx with moby/buildkit driver
- Login to GitHub Container Registry before GoReleaser

This fixes the error:
"Multi-platform build is not supported for the docker driver"
This commit is contained in:
2026-01-03 23:19:14 +00:00
parent 6f59ddd894
commit ac2849fb9b
+12
View File
@@ -248,6 +248,18 @@ jobs:
with:
go-version: ${{ inputs.go-version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: image=moby/buildkit:latest
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download all artifacts
uses: actions/download-artifact@v4
with: