Add bakery CLI commands for release automation#393
Open
bschwedler wants to merge 1 commit intomainfrom
Open
Conversation
Add `bakery get version` command to query version info from bakery.yaml without external tools like yq. Supports lookup by edition match (`bakery get version connect 2026.03.0`) and by latest flag (`bakery get version connect --latest`). Simplify `bakery update version` to auto-detect the existing version by edition. The old 3-arg signature (`bakery update version patch <image> <old> <new>`) is replaced with (`bakery update version <image> <new>`). - Add `extract_edition()` to derive YYYY.MM from version strings - Add `Image.get_version_by_subpath()` for subpath-based lookup - Fix `--no-mark-latest` bug in `create_version` that cleared all latest flags in the in-memory model unconditionally
This was referenced Mar 24, 2026
Test Results1 240 tests 1 240 ✅ 13m 8s ⏱️ Results for commit 45bfb1e. |
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
bakery get versioncommand to query version info from bakery.yaml (by edition match or--latestflag)bakery update versionto auto-detect the existing version by edition (replacesbakery update version patch <image> <old> <new>withbakery update version <image> <new>)extract_edition()utility andImage.get_version_by_subpath()method--no-mark-latestbug increate_versionthat cleared all latest flags unconditionallyThese changes support the release workflow being added to product image repos.
Test plan
bakery get versionmanually against images-connectbakery update versionmanually against images-connect