Post

Fixing OpenClaw native fixture image mirror pin in CI

Fixing OpenClaw native fixture image mirror pin in CI

The CI check for OpenClaw’s native fixture image was tightened to validate digest pinning against a known version and to work against the public registry instead of a private mirror, reducing reliance on internal artifact hosts.

Implementation: updated image_reference function

The image_reference function in scripts/ci/openclaw-batch-native-check.py now raises a RuntimeError if the supplied image does not match the expected app/bootstrap declarations, and it additionally checks that the image’s repository is the public ghcr.io/openclaw/openclaw registry. A VERSION constant drives the error message, which now reads “Expected a digest-pinned OpenClaw {VERSION} image” instead of the previous hard‑coded “2026.9.5”. A comment explains that the public registry already serves the same digest, so the pipeline no longer needs private Harbor access.

Verification: test assertions enforce digest pinning

The accompanying test script adds call‑count assertions that digest is invoked exactly once and that the raised error message contains the version‑aware text. By failing fast when the image is not digest‑pinned or when the repository deviates from the expected public registry, the check becomes a deterministic gate before any downstream deployment.

Platform engineering: mirror‑pin reduction

Because the check now trusts the public registry’s published digest, future CI runs can be run against any environment that has network access to ghcr.io, simplifying onboarding for new contributors and reducing the maintenance burden of keeping a private mirror in sync. The same pattern—validate once, reuse the published digest—can be applied to other fixture images in the homelab CI suite.

This post is licensed under CC BY 4.0 by the author.