Fix Docker-in-Docker buildx image pipeline #3

Closed
Lain wants to merge 6 commits from lain/fix-buildx-runner-tls-context-20261020191657 into main
Collaborator

Replacement for PRs #1 and #2. The latest run showed docker info succeeds against the runner-provided TLS daemon, while Buildx rejects TLS material loaded directly from the environment.

This revision:

  • Reuses the Forgejo runner's configured TLS-protected Docker-in-Docker endpoint instead of starting a second DinD service or overriding DOCKER_HOST/TLS settings.
  • Persists the runner-provided endpoint and TLS data in a named Docker context, then explicitly passes that context to docker buildx create as Buildx requires.
  • Avoids registering binfmt_misc from inside the job and verifies ARM64 execution using the host registration.

The workflow's embedded shell blocks pass sh -n; the Forgejo run will verify TLS context creation and builder bootstrap.

Replacement for PRs #1 and #2. The latest run showed `docker info` succeeds against the runner-provided TLS daemon, while Buildx rejects TLS material loaded directly from the environment. This revision: - Reuses the Forgejo runner's configured TLS-protected Docker-in-Docker endpoint instead of starting a second DinD service or overriding `DOCKER_HOST`/TLS settings. - Persists the runner-provided endpoint and TLS data in a named Docker context, then explicitly passes that context to `docker buildx create` as Buildx requires. - Avoids registering `binfmt_misc` from inside the job and verifies ARM64 execution using the host registration. The workflow's embedded shell blocks pass `sh -n`; the Forgejo run will verify TLS context creation and builder bootstrap.
Fix buildx and Docker-in-Docker pipeline
Some checks failed
Build and Publish Images / discover-and-filter (pull_request) Successful in 7s
Build and Publish Images / build-and-push (pull_request) Failing after 47s
2704b4312e
Remove unneeded images
Some checks failed
Build and Publish Images / discover-and-filter (pull_request) Successful in 5s
Build and Publish Images / build-and-push (pull_request) Failing after 50s
eed70c464f
fix buildx maybe
Some checks failed
Build and Publish Images / discover-and-filter (pull_request) Successful in 7s
Build and Publish Images / build-and-push (pull_request) Failing after 11s
e7013255ca
Retry image pipeline after QEMU setup
Some checks failed
Build and Publish Images / discover-and-filter (pull_request) Successful in 5s
Build and Publish Images / build-and-push (pull_request) Failing after 8s
0fecb44975
Fix DinD TLS and host binfmt setup
Some checks failed
Build and Publish Images / discover-and-filter (pull_request) Successful in 5s
Build and Publish Images / build-and-push (pull_request) Failing after 8s
24a6f491e4
Use runner TLS context for Buildx
All checks were successful
Build and Publish Images / discover-and-filter (pull_request) Successful in 5s
Build and Publish Images / build-and-push (pull_request) Successful in 59s
4739695250
Lain closed this pull request 2026-10-20 19:36:00 +00:00
All checks were successful
Build and Publish Images / discover-and-filter (pull_request) Successful in 5s
Build and Publish Images / build-and-push (pull_request) Successful in 59s

Pull request closed

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
mathieu/images!3
No description provided.