Build multi-arch release images without emulation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-14 17:31:06 +01:00
1 parent 7c3657d015
commit 0984af25bc
6 files changed
+45 -17

No files matched your search

+3
View File
@@ -59,10 +59,13 @@ jobs:
id: sha
run: echo "short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
# amd64 only: these builds exist for the Unraid deploy (x86_64), and a
# single platform keeps every push fast. Releases are multi-arch.
- name: Build and push (:main and :<sha>)
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
build-args: |
VERSION=0.0.0-dev+${{ steps.sha.outputs.short }}
+9 -4
View File
@@ -1,7 +1,8 @@
# Builds a release when a version tag (vX.Y.Z) is pushed: the image is tagged
# :X.Y.Z, :X.Y, :X and :latest in the Gitea registry, and a Gitea release is
# created with the matching section of CHANGELOG.md as notes. Nothing is
# deployed; Tom's Unraid follows :main through deploy.yml.
# Builds a release when a version tag (vX.Y.Z) is pushed: a multi-arch image
# (linux/amd64, linux/arm64) is tagged :X.Y.Z, :X.Y, :X and :latest in the Gitea
# registry, and a Gitea release is created with the matching section of
# CHANGELOG.md as notes. Nothing is deployed; Tom's Unraid follows :main through
# deploy.yml.
#
# A pre-release tag such as v0.2.0-rc.1 only gets its own :0.2.0-rc.1 tag and a
# release marked as pre-release; :latest and the short tags stay on the last
@@ -66,10 +67,14 @@ jobs:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
# No QEMU: the Dockerfile compiles natively on the runner and cross-publishes
# for each architecture; the arm64 runtime stage only copies files. Setting
# up QEMU would also register binfmt handlers on the Unraid host kernel.
- name: Build and push the release tags
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: |
VERSION=${{ steps.version.outputs.version }}