Repository navigation
ci(release): move latest only for the highest stable tag - #576
Conversation
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
chrip
left a comment
There was a problem hiding this comment.
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
|
/backport to stable-9.3 |
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>
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:latestand takes the GitHub "latest" flag.release-infojob runs.github/scripts/is-latest.shagainst the repo'sv*tags:trueonly 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--lateston both GitHub releases now followis_latest; versioned images, packages, APT/DNF and--prereleasestill followis_stable.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 testNotes
latestsymlink is not touched by CI (scripts/update-latest-symlink.shin Euro-Office/release, run by hand), so it needs the same rule theremain(DesktopEditors#345), so merge this one firststable-9.3once it exists, tag builds runrelease.ymlfrom the tagged branch