From 49f3d4b6a55f993ba5c3cab863f8da7e47f7a9dd Mon Sep 17 00:00:00 2001 From: Matthew Daubney Date: Fri, 20 Nov 2026 23:26:56 +0000 Subject: [PATCH] CI: build the release image for linux/amd64 The runner can be arm64; the deploy host is amd64 (v0.3.1 failed with exec format error). Co-Authored-By: Claude Sonnet 5.5 --- .gitea/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cfd188c..2313fc5 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -66,7 +66,8 @@ jobs: - name: Build and push run: | VERSION="${GITHUB_REF_NAME#v}" - docker build -t "$IMAGE:$VERSION" -t "$IMAGE:latest" . + # The runner may be arm64 (a Mac); the deploy host is amd64, so always build for it. + docker build --platform linux/amd64 -t "$IMAGE:$VERSION" -t "$IMAGE:latest" . docker push "$IMAGE:$VERSION" docker push "$IMAGE:latest"