Skip to content

fix: Dereference tags when building a snapshot - #223

Merged
juanjosevazquezgil merged 11 commits into
mainfrom
fix/1126-avoid-overwriting
Jul 29, 2026
Merged

fix: Dereference tags when building a snapshot#223
juanjosevazquezgil merged 11 commits into
mainfrom
fix/1126-avoid-overwriting

Conversation

@juanjosevazquezgil

Copy link
Copy Markdown
Contributor

@juanjosevazquezgil
juanjosevazquezgil requested a review from a team as a code owner July 13, 2026 13:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the BuildImages workflow to better handle git tag inputs when building snapshot images (dereferencing tags to the underlying commit), and improves multi-platform publish behavior by preserving existing platforms from an already-published manifest.

Changes:

  • Initialize type earlier and dereference snapshot tag inputs to the commit SHA (tag^{commit}) when computing the from reference.
  • Preserve existing platforms from the current registry manifest when publishing a multi-platform image.
  • Update tests to cover the new dereference behavior and to account for the new existing-platforms lookup.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
firestarter/workflows/build_images/build_images.py Dereference tags for snapshot builds; include existing manifest platforms; add manifest inspection helper.
firestarter/tests/test_build_images_functionality.py Adjust dereference tests for snapshot vs release behavior; mock existing-platform lookup in compile/publish test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread firestarter/workflows/build_images/build_images.py Outdated
Comment thread firestarter/workflows/build_images/build_images.py Outdated
Comment thread firestarter/workflows/build_images/build_images.py Outdated
Comment thread firestarter/tests/test_build_images_functionality.py Outdated
Comment thread firestarter/tests/test_build_images_functionality.py Outdated
Comment thread firestarter/tests/test_build_images_functionality.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread firestarter/workflows/build_images/build_images.py Outdated
Comment thread firestarter/workflows/build_images/build_images.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread firestarter/workflows/build_images/build_images.py
Comment thread firestarter/workflows/build_images/build_images.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread firestarter/workflows/build_images/build_images.py Outdated
@juanjosevazquezgil
juanjosevazquezgil merged commit 53ad7a2 into main Jul 29, 2026
2 checks passed
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.

3 participants