Skip to content

fix: select latest release tag for Docker rebuild workflow#635

Merged
creativeprojects merged 1 commit intocreativeprojects:masterfrom
alexycodes:fix-checkout-latest-tag
May 5, 2026
Merged

fix: select latest release tag for Docker rebuild workflow#635
creativeprojects merged 1 commit intocreativeprojects:masterfrom
alexycodes:fix-checkout-latest-tag

Conversation

@alexycodes
Copy link
Copy Markdown
Contributor

The latest Rebuild docker image workflow run tagged v0.33.0 as latest on Docker Hub instead of v0.33.1.

This happened because the workflow used git describe --tags --abbrev=0, which selects the nearest tag reachable from master. In this case, the v0.33.1 tag points to a commit outside master, so the workflow fell back to v0.33.0.

This PR fixes the workflow by selecting the highest stable release tag directly, regardless of which branch contains the tagged commit.

Copy link
Copy Markdown

Copilot AI left a comment

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 fixes the Docker rebuild workflow so it rebuilds from the highest stable release tag in the repository instead of the nearest tag reachable from the checked-out branch. That aligns the workflow with the repository’s release process and avoids publishing an older version as latest.

Changes:

  • Replaces git describe --tags --abbrev=0 with a tag query sorted by semantic version.
  • Filters the selected tag to stable vX.Y.Z releases only.
  • Fails the workflow explicitly when no matching release tag is found.

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

@creativeprojects creativeprojects added the bug Something isn't working label May 5, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.99%. Comparing base (dcbd096) to head (d182818).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #635   +/-   ##
=======================================
  Coverage   80.99%   80.99%           
=======================================
  Files         162      162           
  Lines       12113    12113           
=======================================
  Hits         9810     9810           
  Misses       1806     1806           
  Partials      497      497           
Flag Coverage Δ
unittests 79.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Owner

@creativeprojects creativeprojects left a comment

Choose a reason for hiding this comment

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

This was indeed the first time I had to make a quick hot fix while the main branch wasn't clean 😢

Thanks for this PR 👍🏻

I'll kick off a weekly rebuild of the image after merging 😉

@creativeprojects creativeprojects merged commit 8b7bca2 into creativeprojects:master May 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants