mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-06-23 20:01:01 -04:00
e624d7c219
Detect the host architecture at container startup and prepend arch-specific labels to RUNNER_LABELS so matrix workflows can target native runners by architecture: runs-on: amd64 → dispatched to x86_64 runners runs-on: arm64 → dispatched to aarch64 runners runs-on: linux/amd64 / runs-on: linux/arm64 (OCI-style) On x86_64: adds amd64:host and linux/amd64:host On aarch64: adds arm64:host and linux/arm64:host This enables a dedicated ARM64 server running the same image to register native arm64 runners against the same Gitea instance, allowing full multi-arch matrix CI without emulation. - rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh: detect arch, prepend arch labels to RUNNER_LABELS rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh