From 537b502424d22898c9d6480be24a730e9dc2b34a Mon Sep 17 00:00:00 2001 From: Pascal Gru <8317771+pgrunm@users.noreply.github.com> Date: Fri, 29 Apr 2022 13:58:21 +0200 Subject: [PATCH] Update build.yml to build ARM docker images. This commit allows Github actions to automatically create and publish Docker images for armv7 and arm64 architecture (e. g. Raspberry Pi). --- .github/workflows/publish.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 673bab9..0172732 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,15 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + + # Documentation: https://github.com/docker/setup-qemu-action + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + # Documentation: https://github.com/docker/setup-buildx-action + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 - name: Extract metadata (tags, labels) for Docker id: meta @@ -43,3 +52,6 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + # Support for different platforms, see here: + # https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#-set-the-target-platforms-for-the-build---platform + platforms: linux/amd64,linux/arm64,linux/arm/v7