feat(product-release): regenerate Supported tags sections in image READMEs#514
Closed
ianpittwood wants to merge 1 commit into
Closed
feat(product-release): regenerate Supported tags sections in image READMEs#514ianpittwood wants to merge 1 commit into
ianpittwood wants to merge 1 commit into
Conversation
…ADMEs Add a step that, after Update READMEs, refreshes the "## Supported tags" bullet list in each affected image's README using the current bakery build plan. Skips images that don't have a README.md or don't have a "## Supported tags" section, so the workflow remains a no-op for repos that haven't adopted the section. Curation rules match the manually maintained format: - For the latest version, emit a bullet for each (variant, OS) Containerfile. For older versions, emit only the std + primary OS Containerfile. - Within each bullet, drop tags ending in "-std" (redundant with the bare form). For non-latest versions, also drop verbose-version combinations with an OS suffix (keep only the display-version "<X.Y.Z>-ubuntu-*" form). - Sort: newer version first, primary OS first, std before min. The bullet block under the heading is replaced; trailing prose like "For a full list of available tags..." is preserved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Test Results1 464 tests 1 464 ✅ 8m 23s ⏱️ Results for commit ec3a443. |
bschwedler
reviewed
May 8, 2026
Contributor
bschwedler
left a comment
There was a problem hiding this comment.
I like this approach, but given the naive sed that is done in the previous step, I think the supported tags list would likely be mutated first, and I'd like to understand the interaction.
7 tasks
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.
Summary
product-release.ymlafterUpdate READMEsthat regenerates the## Supported tagsbullet list in each image's README.bakery build --planand curated to match the existing hand-maintained format (drop-stdredundant suffixes; for non-latest versions, drop verbose-version+OS combinations and emit only the std+primary-OS Containerfile).Curation rules
std+ primary OS for older versions.-std; for non-latest versions, also drop<verbose-version>-ubuntu-*tags (keep only<display-version>-ubuntu-*).The bullet block under the heading is replaced; trailing prose (e.g. "For a full list of available tags...") is preserved because it sits past a blank line.
Verification
images-package-managerproduced output identical to the manually curated section.Test plan
Supported tagssection (e.g.images-package-manager) and confirm the bullet list updates correctly in the resulting release PR.Supported tagssection and confirm the step skips with a notice log.Caveats
latestfloating tag → latest; Containerfile owning the bare<display-version>/<display-version>-mintag → primary OS). Stable today; would silently mis-bucket if Bakery's floating-tag patterns change. A follow-up to expose pattern metadata from Bakery directly would remove this fragility.^## Supported tags\s*\n\nfollowed by a contiguous bullet block). Different casing, extra blank lines, or interleaved prose will skip the file.🤖 Generated with Claude Code