Skip to content

fix(ci): restore latest Docker tag on stable releases#27140

Merged
obviyus merged 3 commits intomainfrom
fix/docker-release-latest-tag
Feb 26, 2026
Merged

fix(ci): restore latest Docker tag on stable releases#27140
obviyus merged 3 commits intomainfrom
fix/docker-release-latest-tag

Conversation

@obviyus
Copy link
Copy Markdown
Contributor

@obviyus obviyus commented Feb 26, 2026

Summary

  • restore latest tagging in Docker release workflow for stable and legacy stable tag formats
  • allow latest for exact stable tags (vYYYY.M.D) and legacy patch tags (vYYYY.M.D-<n>)
  • keep beta/prerelease tags from overwriting latest

Examples

  • v2026.2.26 -> :2026.2.26 and :latest
  • v2026.2.6-3 -> :2026.2.6-3 and :latest
  • v2026.2.26-beta.1 -> :2026.2.26-beta.1 only
  • v2026.2.6.beta.1 -> :2026.2.6.beta.1 only
  • main branch push -> :main

@openclaw-barnacle openclaw-barnacle bot added size: XS maintainer Maintainer-authored PR labels Feb 26, 2026
@obviyus obviyus self-assigned this Feb 26, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Feb 26, 2026

Greptile Summary

Restores :latest Docker tag for stable version releases while correctly excluding prereleases.

The change adds simple hyphen-check logic at .github/workflows/docker-release.yml:175-177 that tags stable releases (e.g., v2026.2.26) with both :2026.2.26 and :latest, while preventing prerelease versions like v2026.2.26-beta.1 from overwriting :latest.

The bash pattern matching [[ "$version" != *-* ]] correctly handles:

  • Stable versions without hyphens → tagged as :latest
  • Beta versions with -beta.N format → excluded from :latest
  • Legacy patch versions with -1/-2 format → excluded from :latest
  • main branch pushes → tagged as :main (unchanged)

The implementation follows the documented release channel naming from CLAUDE.md:85-90 where stable releases use vYYYY.M.D format and prereleases use hyphenated suffixes.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The change is a small, focused addition (3 lines) that uses simple bash pattern matching to restore expected :latest tagging behavior. The logic correctly handles all documented version formats currently in use. No existing functionality is broken, and the change aligns with the repository's versioning conventions documented in CLAUDE.md.
  • No files require special attention

Last reviewed commit: fc739b3

@obviyus obviyus merged commit 7493f11 into main Feb 26, 2026
25 of 26 checks passed
@obviyus obviyus deleted the fix/docker-release-latest-tag branch February 26, 2026 04:08
@obviyus
Copy link
Copy Markdown
Contributor Author

obviyus commented Feb 26, 2026

Landed via temp rebase onto main.

  • Gate: skipped per maintainer request for this PR
  • Land commit: 5acef65
  • Merge commit:

@obviyus
Copy link
Copy Markdown
Contributor Author

obviyus commented Feb 26, 2026

Landed via temp rebase onto main.

  • Gate: skipped per maintainer request for this PR
  • Land commit: 5acef65
  • Merge commit: 7493f11

Thanks @obviyus!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant