fix(docker-publish): use a docker-container builder for multi-platform builds #2

Merged
tim merged 1 commit from fix/docker-publish-builder into main 2026-10-12 09:36:35 +00:00
Owner

Fixes the first real use of docker-publish (tim/hass-mcp!7, push run #113).

Problem

The job failed with:

ERROR: failed to build: Multi-platform build is not supported for the docker driver.

The runner's default buildx builder uses the docker driver, which cannot build multi-platform images. The previous hass-mcp pipeline created a container builder with docker/setup-buildx-action; that step was lost when moving to this action.

Everything before the build worked: @v1 resolved from another repo, and Login Succeeded (so REPO_WRITER_PAT is valid).

Why the self-test did not catch it

With push=false the action built a single platform with --load, which the docker driver accepts. The production path (multi-platform with --push) was never exercised.

Fix

  • Create (once) and use a named docker-container builder (--builder workflow-basics-multiarch).
  • With push=false, build all requested platforms (result stays in the build cache), so the self-test exercises the same path as a real push.

Verified

  • Reproduced the exact CI error locally with the docker-driver builder.
  • The action builds both platforms with its own builder and reuses it on the second run.
  • Runner self-test test docker-publish (dispatch on this branch) is running.

After merging

Move the v1 tag to the merge commit (v1.0.1 as a new tag, then v1), so callers pick up the fix.

Generated with Claude Code

Fixes the first real use of `docker-publish` (tim/hass-mcp!7, push run #113). ## Problem The job failed with: ``` ERROR: failed to build: Multi-platform build is not supported for the docker driver. ``` The runner's default buildx builder uses the `docker` driver, which cannot build multi-platform images. The previous hass-mcp pipeline created a container builder with `docker/setup-buildx-action`; that step was lost when moving to this action. Everything before the build worked: `@v1` resolved from another repo, and `Login Succeeded` (so `REPO_WRITER_PAT` is valid). ## Why the self-test did not catch it With `push=false` the action built a single platform with `--load`, which the docker driver accepts. The production path (multi-platform with `--push`) was never exercised. ## Fix - Create (once) and use a named `docker-container` builder (`--builder workflow-basics-multiarch`). - With `push=false`, build all requested platforms (result stays in the build cache), so the self-test exercises the same path as a real push. ## Verified - Reproduced the exact CI error locally with the docker-driver builder. - The action builds both platforms with its own builder and reuses it on the second run. - Runner self-test `test docker-publish` (dispatch on this branch) is running. ## After merging Move the `v1` tag to the merge commit (`v1.0.1` as a new tag, then `v1`), so callers pick up the fix. Generated with [Claude Code](https://claude.com/claude-code)
fix(docker-publish): use a docker-container builder for multi-platform builds
All checks were successful
test auto-tag / test (pull_request) Successful in 3s
test docker-publish / test (pull_request) Successful in 3s
test python-test / test (pull_request) Successful in 15s
test security-scan / test (pull_request) Successful in 30s
ac9243c46f
The runner's default buildx builder uses the "docker" driver, which fails
a multi-platform build with "Multi-platform build is not supported for
the docker driver". The previous hass-mcp pipeline created a container
builder with docker/setup-buildx-action; that step got lost when moving
to this action. Create (once) and use a named docker-container builder.

Also build every requested platform when push=false, so the self-test
exercises the same path as a real push. The old --load variant built a
single platform and hid this failure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit 361a61972a into main 2026-10-12 09:36:35 +00:00
tim deleted branch fix/docker-publish-builder 2026-10-12 09:36:35 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/workflow-basics!2
No description provided.