ci(release): move :latest to the highest pre-release while no stable release exists

Only pre-releases (v0.1.0-rc.1, rc.2) are published, and :latest followed the highest stable release only, so the
Unraid template and the compose file, which pull :latest, found no image while :nightly was pushed every night.

The new Chronos.Tools command release-channels reads the published releases (stable and pre-releases), ignores drafts
and tags that are not SemVer, counts the tag itself as published and compares by SemVer 2.0 precedence. It prints
latest (the public releases repository: highest stable release only) and image_latest (:latest: the highest stable
release, or the highest pre-release while none is stable). Re-publishing an older tag never rolls either back.
release.yml uses it in place of curl|grep|sort -V; the image job pushes :latest on image_latest. README, the public
README, the compose file and ARCHITECTURE explain :latest, :<version> and :nightly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-26 21:45:57 +01:00
1 parent 5209579631
commit 3679e80ebb
8 files changed
+343 -31

No files matched your search

+8 -6
View File
@@ -135,7 +135,7 @@ installed copy of either.
1. Make sure `main` is green, the Windows-only tests passed (on the Windows runner or a Windows PC) and
`docs/CHANGELOG.md` / `docs/STATUS.md` are up to date.
2. Tag and push: `git tag v0.2.0 && git push origin v0.2.0` (pre-releases: `v0.2.0-rc.1`; they are published as
Gitea pre-releases, get no `:latest` image and are ignored by the in-app update check).
Gitea pre-releases, move `:latest` only while no stable release exists and are ignored by the in-app update check).
3. `release.yml` then, in its job *Build, test and publish* (SDK container):
- validates the tag, builds with `ChronosVersion` from the tag and `ChronosReleasesUrl` (the repository the release
goes to), runs the package guard, the i18n check and the Core, Data, Server and Tools tests;
@@ -155,9 +155,10 @@ installed copy of either.
4. Its job *Server image* (the runner's own image with the docker CLI and the host's daemon) then builds the image for
linux/amd64 only (arm64 would need QEMU on the host) and pushes
`gitea.encke-hake.ts.net/balbosoft/chronos-server:<v>`, plus `:latest` when the tag is the highest stable version among
the published releases (not Gitea's `releases/latest`, which is the most recently created one): a pre-release, or an
older tag published again, only gets its release and its `:<v>` image. Without `REGISTRY_TOKEN` this job fails with instructions while the release is already published: add
the secret and re-run the job.
the published releases, or the highest pre-release while none is stable (`Chronos.Tools release-channels`, by SemVer
precedence; not Gitea's `releases/latest`, which is the most recently created one): an older tag published again, or
a pre-release once a stable release exists, only gets its release and its `:<v>` image. Without `REGISTRY_TOKEN`
this job fails with instructions while the release is already published: add the secret and re-run the job.
5. To publish an existing tag again (for example after adding a secret), run *Release* manually (Actions › Release ›
*Run workflow*) with the tag.
@@ -210,8 +211,9 @@ security problems go privately to the maintainers (`SECURITY.md`), never into a
### Server image, Compose and Unraid
- Image: `gitea.encke-hake.ts.net/balbosoft/chronos-server`, tags `:latest` (newest stable release), `:<version>` and
`:nightly` (`main`, not for production); linux/amd64 only.
- Image: `gitea.encke-hake.ts.net/balbosoft/chronos-server`, tags `:latest` (newest stable release; before the first
one, the newest pre-release), `:<version>` and `:nightly` (`main` rebuilt every night, not for production);
linux/amd64 only.
- Compose: `deploy/docker/docker-compose.yml` and `.env.example`, downloaded from
`https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/docker/docker-compose.yml` and
`…/deploy/docker/.env.example`.