Add stream-based floating tags for dev versions#504
Merged
bschwedler merged 2 commits intomainfrom Apr 30, 2026
Merged
Conversation
Dev versions from named release streams (daily, preview) now
automatically get floating tags using the stream name. For example,
a Connect daily build produces tags like `daily`, `daily-ubuntu-24.04`,
and `daily-std` alongside the versioned tags.
This replaces the old `ubuntu2204-daily` style floating tags that
were managed outside of bakery. The stream name is already stored
in ImageVersion metadata — this change exposes it to the tag
template system.
- Add `Stream` to tag template values from version metadata
- Add `{{ Stream }}`-based patterns to default tag patterns
- Skip rendering when Stream is empty (release versions)
The Stream extraction used getattr(..., "value", "") which silently returned empty string for plain-string metadata. Now handles both enum and string forms. Adds positive test covering enum, string, and absent release_stream metadata.
ianpittwood
approved these changes
Apr 29, 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.
Summary
Streamto tag template values fromImageVersion.metadata["release_stream"]{{ Stream }}-based patterns to the default tag patterns, mirroring the{{ Version }}pattern structureStreamis empty, so release versions are unaffectedExample output
Connect daily stream produces:
ghcr.io/posit-dev/connect-preview:dailyghcr.io/posit-dev/connect-preview:daily-ubuntu-24.04ghcr.io/posit-dev/connect-preview:daily-ubuntu-22.04ghcr.io/posit-dev/connect-preview:daily-stdghcr.io/posit-dev/connect-preview:daily-minPPM gets both
dailyandpreviewfloating tags.This replaces the old
ubuntu2204-dailystyle floating tags that were managed outside of bakery in therstudio-docker-productsbuild system.Part of #279, #326.
Test plan
bakery get tags --dev-versions onlyproduces stream tags for Connect, PPM, and Workbenchbakery get tags --dev-versions excludeproduces no stream tags for release versions