mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-06-08 22:59:26 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user