Skip to content

ci(release): move latest only for the highest stable tag - #576

Merged
chrip merged 1 commit into
mainfrom
ci/latest-highest-stable
Dec 1, 2026
Merged

chrip merged 1 commit into
mainfrom
ci/latest-highest-stable

Conversation

@juliusknorr

@juliusknorr juliusknorr commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Part of Euro-Office/release#14.

With a long-lived stable-9.3, a v9.3.10 can be tagged after v9.4.0. Today every stable tag moves :latest and takes the GitHub "latest" flag.

  • New release-info job runs .github/scripts/is-latest.sh against the repo's v* tags: true only for the highest stable tag (vX.Y.Z / vX.Y.Z-N, sort -V), never for prereleases
  • :latest (euro-office and nextcloud-releases images) and --latest on both GitHub releases now follow is_latest; versioned images, packages, APT/DNF and --prerelease still follow is_stable
  • Test: .github/scripts/tests/is-latest.test.sh (v9.4.0 + v9.3.10 -> not latest, v9.3.9-1 over v9.3.9, rc -> never), run by Scripts test

Notes

  • The download server latest symlink is not touched by CI (scripts/update-latest-symlink.sh in Euro-Office/release, run by hand), so it needs the same rule there
  • DesktopEditors reuses this script from main (DesktopEditors#345), so merge this one first
  • Needs a backport to stable-9.3 once it exists, tag builds run release.yml from the tagged branch

A 9.3.x patch tagged from stable-9.3 after 9.4.0 still publishes its
packages, versioned images and GitHub release, but no longer takes over
:latest or the GitHub latest flag. See Euro-Office/release#14.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
@juliusknorr juliusknorr added the build Build process related changes label Nov 16, 2026
@juliusknorr
juliusknorr marked this pull request as ready for review November 30, 2026 19:53
@juliusknorr
juliusknorr requested a review from a team as a code owner November 30, 2026 19:53
@juliusknorr
juliusknorr requested review from DmySyz, MonaAghili and chrip and removed request for a team November 30, 2026 19:53

@chrip chrip 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.

Approve. Looks good to merge.

The new release-info job reads the repo's v* tags and lets only the highest stable tag move :latest and the GitHub "latest" flag. Versioned images, packages and the prerelease flag still follow is_stable. I ran is-latest.test.sh in a container and also fed the script the repo's real tags: v9.3.8 comes out as latest, while v9.3.7-1 and v9.3.4-hotfix.1 do not, which is what we want. The stable pattern matches the one in build.yml, and the Script tests workflow picks up the new test through its *.test.sh glob.

nitpick (non-blocking): .github/workflows/build.yml:237-239 still says publish-euro-office-images moves :latest "for stable tags". After this PR it is only the highest stable tag, so that comment could say so.

suggestion: release.yml conflicts with #534 and #595, which change the runs-on and needs lines of the same four publish jobs. Whichever lands second needs a rebase. If this one goes second, release-info should get the same if: and runs-on lines as the other jobs.

stable-9.3 exists now, so the backport you mention can follow right after this merges.

Assisted-by: ClaudeCode:claude-opus-5-5

@chrip
chrip merged commit 0b95d1c into main Dec 1, 2026
24 checks passed
@chrip
chrip deleted the ci/latest-highest-stable branch December 1, 2026 08:13
@github-project-automation github-project-automation Bot moved this from 📄 To do to ☑️ Done in 📄 Euro-Office team Dec 1, 2026
@juliusknorr

Copy link
Copy Markdown
Member Author

/backport to stable-9.3

@backportbot backportbot Bot added the backport-request Needs a backport to a stable branch label Dec 3, 2026
@backportbot backportbot Bot removed the backport-request Needs a backport to a stable branch label Dec 3, 2026
chrip pushed a commit that referenced this pull request Dec 4, 2026
A 9.3.x patch tagged from stable-9.3 after 9.4.0 still publishes its
packages, versioned images and GitHub release, but no longer takes over
:latest or the GitHub latest flag. See Euro-Office/release#14.


Assisted-by: ClaudeCode:claude-opus-5-5

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build process related changes

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants