Skip to content

Fix GHCR tag casing in runner-image workflow#48

Merged
GiggleLiu merged 1 commit into
mainfrom
fix-ghcr-lowercase
Jul 17, 2026
Merged

Fix GHCR tag casing in runner-image workflow#48
GiggleLiu merged 1 commit into
mainfrom
fix-ghcr-lowercase

Conversation

@GiggleLiu

Copy link
Copy Markdown
Collaborator

The first runner-image.yml run on main failed in 20s:

ERROR: invalid tag "ghcr.io/CodingThrust/problem-reductions-runner:v0.6.0": repository name must be lowercase

github.repository_owner preserves the org's casing (CodingThrust); Docker repository names must be lowercase. This computes the image namespace via tr in a dedicated step and tags ghcr.io/codingthrust/problem-reductions-runner — matching the GHCR_IMAGE default in the Makefile.

Same caveat as before: the workflow only fires on pushes to main, so this can only be fully verified by merging. The failure mode is deterministic (tag validation happens before any build), the fix is the standard lowercase-owner pattern, and YAML + the tr pipeline were verified locally.

After merge, the first successful push still needs the one-time step: mark the GHCR package public (Packages → problem-reductions-runner → Package settings).

Docker repository names must be lowercase; github.repository_owner preserves
the org's casing (CodingThrust), so the first run failed at tag validation.
Compute the image namespace with tr in a dedicated step.
@GiggleLiu
GiggleLiu merged commit 0063e44 into main Jul 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant