Skip to content

feat: add tag_latest input to suppress the latest tag - #50

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

kthoms merged 1 commit into
mainfrom
feat/tag-latest-input

Conversation

@kthoms

@kthoms kthoms commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

release.sh adds latest when the version is higher than the highest release on Docker Hub at check time (should_tag_latest), then pushes. Check and push are not atomic: when an older-line patch (e.g. 2.1.6) and a newer minor (e.g. 2.2.0) are released on the same day, the older one can check before the newer one is pushed and push after it, moving latest back.

  • New workflow_dispatch input tag_latest (auto | false, default auto), passed to release.sh as TAG_LATEST
  • TAG_LATEST=false skips latest (and the Docker Hub tag lookup); other values are rejected
  • auto (and callers that don't pass the input, incl. the release event) keep the current behaviour

Counterpart in operaton/operaton: release.yml passes tag_latest=false when a newer release/* branch exists.

Test plan

  • test/test-release-tags.sh extended: TAG_LATEST=false → no latest, no curl lookup; invalid value rejected
  • Passes on Ubuntu 24.04; new assertion fails against the previous release.sh
  • Note: the test is not wired into CI, and its SBOM section fails on macOS (pre-existing, unrelated)

🤖 Generated with Claude Code

release.sh tags latest when the version is the highest release on Docker
Hub at check time. When an older-line patch and a newer minor release are
published on the same day, the older one can push after the newer one and
move latest back. The caller now passes tag_latest=false for older-line
releases; the default 'auto' keeps the current behaviour.

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:25

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 added the enhancement New feature or request label Oct 23, 2026
@kthoms
kthoms merged commit a03f398 into main Oct 23, 2026
9 checks passed
@kthoms
kthoms deleted the feat/tag-latest-input branch October 23, 2026 10:35
kthoms added a commit to operaton/operaton that referenced this pull request Oct 23, 2026
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]>
kthoms added a commit to operaton/operaton that referenced this pull request Oct 23, 2026
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.


(cherry picked from commit 782023b)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants