diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69f4891..f30996b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,14 +94,19 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v4 + with: + platforms: arm64 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4.3.0 - - name: Build and push linux/amd64 image + - name: Build and push multi-platform image uses: docker/build-push-action@v7.3.0 with: context: . - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: | ${{ env.IMAGE_NAME }}:${{ steps.release.outputs.version }} diff --git a/README.md b/README.md index da9652e..de5300f 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,10 @@ By default `docker-compose.yml` pulls the prebuilt image from Docker Hub — no local build needed. To build from source instead, replace the `image:` line with `build: .` and run `docker compose up --build`. +Release images support `linux/amd64` and `linux/arm64` (including Raspberry Pi +running a 64-bit OS and ARM-based cloud servers). Docker selects the native image +automatically; no runtime emulation or `platform:` override is needed. + Then open: - Admin panel: @@ -488,7 +492,7 @@ practical, so local smoke tests can run on older macOS Python builds. GitHub Releases and Docker Hub images are published together by `.github/workflows/release.yml`. The workflow runs only for version tags matching `v*.*.*`, verifies that the tagged commit belongs to `main`, runs the complete test -suite, builds the image for `linux/amd64`, pushes it to Docker Hub and finally creates +suite, builds the image for `linux/amd64` and `linux/arm64`, pushes it to Docker Hub and finally creates a GitHub Release with automatically generated notes. Configure these GitHub Actions repository secrets before publishing the first release: