Skip to content

Add bakery CLI commands for release automation#393

Open
bschwedler wants to merge 1 commit intomainfrom
bakery-cli-release-workflow
Open

Add bakery CLI commands for release automation#393
bschwedler wants to merge 1 commit intomainfrom
bakery-cli-release-workflow

Conversation

@bschwedler
Copy link
Copy Markdown
Contributor

Summary

  • Add bakery get version command to query version info from bakery.yaml (by edition match or --latest flag)
  • Simplify bakery update version to auto-detect the existing version by edition (replaces bakery update version patch <image> <old> <new> with bakery update version <image> <new>)
  • Add extract_edition() utility and Image.get_version_by_subpath() method
  • Fix --no-mark-latest bug in create_version that cleared all latest flags unconditionally

These changes support the release workflow being added to product image repos.

Test plan

  • All 1213 existing tests pass (1 pre-existing oras failure unrelated)
  • Test bakery get version manually against images-connect
  • Test bakery update version manually against images-connect
  • Verify release workflow end-to-end in images-connect

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
@github-actions
Copy link
Copy Markdown

Test Results

1 240 tests   1 240 ✅  13m 8s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 45bfb1e.

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