Skip to content

Tag :latest only for the newest released version#2607

Merged
fnando merged 2 commits into
mainfrom
docker-latest
Jun 16, 2026
Merged

Tag :latest only for the newest released version#2607
fnando merged 2 commits into
mainfrom
docker-latest

Conversation

@fnando

@fnando fnando commented Jun 5, 2026

Copy link
Copy Markdown
Member

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

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.

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
@fnando fnando merged commit 0a0e74e into main Jun 16, 2026
223 of 234 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Jun 16, 2026
@fnando fnando deleted the docker-latest branch June 16, 2026 00:24
Copilot stopped work on behalf of fnando due to an error June 16, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants