From c4962a29186a76d9ded4a5f4c686ad0230c7671b Mon Sep 17 00:00:00 2001 From: Andrea Cervesato Date: Thu, 16 Jan 2025 11:06:05 +0100 Subject: [PATCH] Enhance GitHub Actions workflow for tag releases by adding QEMU and Docker Buildx setup steps, enabling multi-platform builds for Docker images. --- .github/workflows/on_tag.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/on_tag.yaml b/.github/workflows/on_tag.yaml index 6e8000f..83e8e59 100644 --- a/.github/workflows/on_tag.yaml +++ b/.github/workflows/on_tag.yaml @@ -39,6 +39,15 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 + - name: Docker meta id: meta uses: docker/metadata-action@v5 @@ -74,6 +83,7 @@ jobs: context: . # Or specify a subdirectory if needed file: ./Dockerfile # Path to your Dockerfile push: true + platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}