📖 Add description label to published container images#192
Merged
Conversation
Fixes #160. Non-prod images were already tagged `staging`, but every image (prod and staging) inherited a generic repo-wide description from docker/metadata-action, with no link back to the PR that built it. Override org.opencontainers.image.description per-build: staging builds point at the originating PR, production builds name the release tag. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the container-image publishing workflow to set a per-build OCI image description so GHCR packages clearly indicate which PR (staging) or release tag (production) produced a given image.
Changes:
- Overrides
org.opencontainers.image.descriptionduring metadata extraction. - Uses the PR
html_url(not PR title) for staging image descriptions, and the release tag/ref name for production.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Fixes #160.
Summary
stagingon PR builds (ci.yml:100) — that part of the issue was already handled.docker/metadata-action, so there was no way to tell which PR (or release) produced a given package version.org.opencontainers.image.descriptionper-build: staging builds link back to the originating PR (html_url, not the untrusted PR title), production builds name the release tag.Test plan
staging-tagged package version on GHCR shows a description pointing at that PR