Skip to content

Tag :latest only for the newest released version#2607

Open
fnando wants to merge 1 commit into
mainfrom
docker-latest
Open

Tag :latest only for the newest released version#2607
fnando wants to merge 1 commit into
mainfrom
docker-latest

Conversation

@fnando
Copy link
Copy Markdown
Member

@fnando fnando commented Jun 5, 2026

What

The Docker workflow now pushes the :latest tag only when the version being built is the highest released vX.Y.Z tag. Building an older version tag publishes its versioned tag but leaves :latest untouched. The source checkout also fetches tags so the comparison has the full tag list.

Why

:latest was pushed for any ref matching vX.Y.Z, with no version comparison. Releasing a back-port or re-running an older version tag (e.g. a 25.x patch after 26.x shipped) would clobber :latest to point at the older release. This guard ensures :latest only ever advances to the newest version.

Known limitations

N/A

Copilot AI review requested due to automatic review settings June 5, 2026 22:05
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Jun 5, 2026
@fnando fnando self-assigned this Jun 5, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Jun 5, 2026
Copy link
Copy Markdown
Contributor

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 updates the Docker GitHub Actions workflow to ensure the :latest Docker tag is only pushed when building the highest released vX.Y.Z version tag, preventing older backport releases from overwriting :latest.

Changes:

  • Fetch Git tags during the source checkout so the workflow can compare against available version tags.
  • Compute the highest released vX.Y.Z tag and only include :latest when building that highest version; otherwise push only the versioned tag.

Comment thread .github/workflows/docker.yml Outdated
Comment thread .github/workflows/docker.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

2 participants