fix: make build-container.yaml CI pipeline work e2e #25

Closed
opened 2026-02-26 05:16:26 +00:00 by mik-tf · 0 comments
Owner

Problem

The build-container.yaml workflow (DinD container build + push to registry) fails at the Checkout step. Only run was on Feb 11 (run 247) — failed immediately.

The build.yaml workflow (test/check/build) works fine because it uses ghcr.io/despiegk/builder:latest (full ubuntu). The container build uses docker:24-dind (alpine), where actions/checkout@v4 likely fails due to glibc/musl mismatch.

Fix

Replace actions/checkout@v4 with manual git clone using FORGEJO_TOKEN. This avoids the node/glibc dependency entirely and is the standard approach for alpine-based DinD containers.

Also fix the same issue in the create-release job.

Validation

Trigger via workflow_dispatch and confirm the full pipeline completes:

  1. Checkout (git clone)
  2. SSH setup
  3. BuildKit setup
  4. Registry login
  5. Build and push to forge.ourworld.tf/lhumina_code/hero_zero
## Problem The `build-container.yaml` workflow (DinD container build + push to registry) fails at the Checkout step. Only run was on Feb 11 (run 247) — failed immediately. The `build.yaml` workflow (test/check/build) works fine because it uses `ghcr.io/despiegk/builder:latest` (full ubuntu). The container build uses `docker:24-dind` (alpine), where `actions/checkout@v4` likely fails due to glibc/musl mismatch. ## Fix Replace `actions/checkout@v4` with manual `git clone` using FORGEJO_TOKEN. This avoids the node/glibc dependency entirely and is the standard approach for alpine-based DinD containers. Also fix the same issue in the `create-release` job. ## Validation Trigger via `workflow_dispatch` and confirm the full pipeline completes: 1. Checkout (git clone) 2. SSH setup 3. BuildKit setup 4. Registry login 5. Build and push to `forge.ourworld.tf/lhumina_code/hero_zero` ## Related - [dev_docs #26](https://forge.ourworld.tf/geomind_code/dev_docs/issues/26) — docker_publish skill update - [dev_docs PR #28](https://forge.ourworld.tf/geomind_code/dev_docs/pulls/28) — skill PR (will update Working Reference once this is green)
Sign in to join this conversation.
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
lhumina_code/hero_services#25
No description provided.