fix(ci): annotate OCI index so GHCR links the package to the repo - #8
Merged
Conversation
jcpitre
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The repo has no Packages section even though
ghcr.io/mobilitydata/gtfs-validator-apipublishes successfully. The package is public with 9 tags, but it is not linked to
this repository.
PR #6 added
LABEL org.opencontainers.image.sourcefor exactly this purpose, and thelabel is present on the published images. It does not link because a Dockerfile
LABELonly reaches the per-platform image configs, never the OCI image index that a
multi-platform push produces, and the index is what GHCR reads.
Current state vs. a working multi-arch reference:
Changes
docker.yml: emit animage_urloutput (barehttps://github.com/OWNER/REPO, no.git) alongside the existingimage_source, and passindex:-prefixedannotations to
docker/build-push-action, includingorg.opencontainers.image.source.Dockerfile: keep the existingARG/LABELfrom feat: automated project version management and docker release #6, which is what single-arch andlocal builds carry. Add
title,descriptionandlicenseslabels so the imagestops inheriting Ubuntu's metadata and advertising itself as
title=ubuntu.Verification
Annotations only land at push time, so this is confirmable after merge:
Prints
Nonetoday; should print a dict containing the source URL. No release needed,since merges to
mainalready publish.Caveat: this guarantees linkage for newly pushed images. Whether GHCR retroactively
links a package that was created unlinked back in June is unconfirmed. If the section
still does not appear after merge, that is the open question, not this change.