Skip to content

feat(ci): don't move Docker latest for older-line releases - #3941

Merged
kthoms merged 1 commit into
mainfrom
feat/release-docker-tag-latest
Oct 23, 2026
Merged

kthoms merged 1 commit into
mainfrom
feat/release-docker-tag-latest

Conversation

@kthoms

@kthoms kthoms commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

operaton-docker decides latest by comparing with the highest release on Docker Hub at check time, which is racy when an older-line patch and a newer minor are released the same day (e.g. 2.1.6 and 2.2.0).

"Notify Docker Repository" in release.yml now passes tag_latest:

  • false if a release/A.B.x branch with a higher A.B than the released version exists (older line)
  • auto otherwise (unchanged behaviour)

Deterministic (based on branch existence, not on what Docker Hub shows at that moment). Trade-off: once a newer release branch is cut, older-line patches never move latest, even if the newer .0 is not released yet.

⚠️ Merge order: merge operaton/operaton-docker#50 first. Until that input exists, GitHub rejects the dispatch (HTTP 422) and post_release stops before the next-version commit.

No backport to release/2.1.x (line is being closed).

Test plan

  • Step script run locally against the live branch list (release/2.1.x, release/2.2.x):
    2.1.6→false, 1.1.4→false, 2.2.0/2.2.1/2.2.0-M1/3.0.0→auto
  • Next release run: dispatch payload in the "Notify Docker Repository" log

🤖 Generated with Claude Code

Pass tag_latest=false to operaton-docker when a newer release/* branch
exists, so a patch of an older line released on the same day as a newer
minor cannot push latest after it. Requires operaton/operaton-docker#50.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 10:26
@kthoms kthoms added this to the 2.3.0 milestone Oct 23, 2026
@kthoms kthoms added the scope:ci Changes to the CI, e.g. GitHub workflows label Oct 23, 2026

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kthoms
kthoms merged commit 86f43cd into main Oct 23, 2026
6 checks passed
@kthoms
kthoms deleted the feat/release-docker-tag-latest branch October 23, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:ci Changes to the CI, e.g. GitHub workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants