Skip to content

Use build.get_image_tags for deployments from builds#1326

Open
4ndv wants to merge 1 commit intomoghtech:mainfrom
4ndv:build-deployments-use-get-image-tags
Open

Use build.get_image_tags for deployments from builds#1326
4ndv wants to merge 1 commit intomoghtech:mainfrom
4ndv:build-deployments-use-get-image-tags

Conversation

@4ndv
Copy link
Copy Markdown

@4ndv 4ndv commented Apr 4, 2026

  • Reuse build.get_image_tags() for building image tag for deployments
  • Reorder stuff in get_image_tags for preserving current deployment behavior (to prefer full version tags). It's currently only used for running builds, and builder doesn't really care about the order
  • Fallback to :latest for both builds and deployments if no other tags were added to not fail when all of the tagging options are disabled

Tried my best to test all the combinations, but I'm not very familiar with the codebase and may miss some things

Fixes #1325

@mbecker20
Copy link
Copy Markdown
Member

Thanks for catching and fixing, will review shortly

DeploymentImage::Build { build_id, version } => {
DeploymentImage::Build {
build_id,
version: _,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version should not be unused here, please review

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.

Deploy tries to find image tagged with version while build has "Include Version Tags" disabled

2 participants