fix: remove the buildx builder container when the build step ends #14

Merged
tim merged 1 commit from fix/buildx-builder-cleanup into develop 2026-11-02 11:44:01 +00:00
Owner

The workflow-basics-multiarch builder was created once and left running on the runner host after every build.

This adds an EXIT trap in docker-publish/action.yml and .forgejo/workflows/build-hassfest.yml that runs docker buildx rm --force "$BUILDER", so no builder is left behind, also when the build fails.

Cost: the builder's build cache is gone on the next run.

Branch is based on a8b7fa5 (main), which develop contains. Not merged on purpose: Tim merges.

🤖 Generated with Claude Code

The `workflow-basics-multiarch` builder was created once and left running on the runner host after every build. This adds an EXIT trap in `docker-publish/action.yml` and `.forgejo/workflows/build-hassfest.yml` that runs `docker buildx rm --force "$BUILDER"`, so no builder is left behind, also when the build fails. Cost: the builder's build cache is gone on the next run. Branch is based on `a8b7fa5` (main), which `develop` contains. Not merged on purpose: Tim merges. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: remove the buildx builder container when the build step ends
All checks were successful
test auto-tag / test (pull_request) Successful in 3s
test docker-publish / test (pull_request) Successful in 6s
test forgejo-release / test (pull_request) Successful in 3s
test hassfest / test (pull_request) Successful in 30s
test node-test / test (pull_request) Successful in 7s
test python-test / test (pull_request) Successful in 13s
test security-scan / test (pull_request) Successful in 28s
f3f74da80b
The workflow-basics-multiarch builder was created once and left running
on the runner host after every build. Remove it with an EXIT trap in
docker-publish and build-hassfest so none is left behind, also when the
build fails. Costs the builder's build cache on the next run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit 8e7b7b497e into develop 2026-11-02 11:44:01 +00:00
tim deleted branch fix/buildx-builder-cleanup 2026-11-02 11:44:01 +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!14
No description provided.