From d1803f06dde4c170b8a428a7a621726a21b17cbe Mon Sep 17 00:00:00 2001 From: Emma Thorpe Date: Thu, 11 Jun 2026 17:18:12 +0100 Subject: [PATCH] fix: build multi-arch images for amd64 and arm64 Add QEMU setup and build for linux/amd64 and linux/arm64 (armv8), publishing a single multi-arch manifest. The nginx-unprivileged base image provides both architectures. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/build-and-publish.yml | 4 ++++ README.md | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-and-publish.yml b/.gitea/workflows/build-and-publish.yml index 091a2bd..a604c8a 100644 --- a/.gitea/workflows/build-and-publish.yml +++ b/.gitea/workflows/build-and-publish.yml @@ -93,6 +93,9 @@ jobs: echo "release=${release}" >> "$GITHUB_OUTPUT" echo "Computed bump=${bump}, release=${release}, base=${base}" + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Buildx uses: docker/setup-buildx-action@v3 @@ -108,6 +111,7 @@ jobs: uses: docker/build-push-action@v6 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.version.outputs.tags }} labels: | diff --git a/README.md b/README.md index d17cdda..c583413 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,9 @@ docker run --rm -p 8080:8080 dlr `.gitea/workflows/build-and-publish.yml` builds the container with Gitea Actions on every push to `main` and on pull requests. Pull requests build the image but -do not push. The registry host is derived from the Gitea server URL. +do not push. The registry host is derived from the Gitea server URL. Images are +built for `linux/amd64` and `linux/arm64` (armv8) and published as a single +multi-arch manifest; the arm64 build runs under QEMU emulation. Authentication requires a Personal Access Token with package read/write scope, because the automatically provided `GITEA_TOKEN` does not carry container -- 2.52.0