ci(release): build images with plain docker, not buildx
CI / Architecture Guardrails (push) Successful in 3m2s
CI / Typecheck (push) Successful in 3m49s
CI / Assistant Split Regression (push) Successful in 4m15s
CI / Lint (push) Successful in 4m21s
CI / Unit Tests (push) Successful in 7m22s
CI / Build (push) Successful in 6m44s
CI / E2E Tests (push) Successful in 5m23s
CI / Fresh-Linux Docker Deploy (push) Successful in 5m39s
CI / Release Images (push) Failing after 4m11s

The QNAP host kernel rejects fchmodat2 AT_EMPTY_PATH calls that newer
buildkit's runc emits, breaking docker/build-push-action@v5. The
docker-deploy-test job already builds the same Dockerfile.prod via
plain docker build (DooD) and works, so do the same here: drop the
buildx setup and use docker build + docker push directly against the
host daemon.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-13 08:31:01 +02:00
parent 69d74881dc
commit 4cbfb2508d
+18 -21
View File
@@ -31,9 +31,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
run: docker buildx create --use --name ci-builder 2>/dev/null || true
- id: registry
name: Resolve Gitea registry host
# GITHUB_SERVER_URL inside act_runner resolves to the *internal* Gitea
@@ -64,28 +61,28 @@ jobs:
echo "migrator_image=${host}/${owner}/${repo}-migrator:${image_tag}" >> "$GITHUB_OUTPUT"
# Guardrail anchor: target: runner
# Use plain `docker build` against the host daemon (DooD) instead of
# docker/build-push-action's buildx+buildkit container, which fails on
# the QNAP host with `runc ... fchmodat2 AT_EMPTY_PATH: no such file or
# directory` (older kernel rejects newer buildkit's runc syscalls).
- name: Build and push app image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.prod
target: runner
push: true
tags: ${{ steps.vars.outputs.app_image }}
cache-from: type=gha,scope=app
cache-to: type=gha,mode=max,scope=app
run: |
docker build \
-f ./Dockerfile.prod \
--target runner \
-t "${{ steps.vars.outputs.app_image }}" \
.
docker push "${{ steps.vars.outputs.app_image }}"
# Guardrail anchor: target: migrator
- name: Build and push migrator image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.prod
target: migrator
push: true
tags: ${{ steps.vars.outputs.migrator_image }}
cache-from: type=gha,scope=migrator
cache-to: type=gha,mode=max,scope=migrator
run: |
docker build \
-f ./Dockerfile.prod \
--target migrator \
-t "${{ steps.vars.outputs.migrator_image }}" \
.
docker push "${{ steps.vars.outputs.migrator_image }}"
- name: Release summary
run: |