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"