ci(release): push the image only after the tests, move :latest after the release
- The docker job waits for the Windows build and tests and pushes only :<v>; publish moves :latest with imagetools once the GitHub release exists and the tag is the newest stable one, so a failed or older re-published tag never moves it. - The GitHub release is created before the public repository content, so the public SHA256SUMS never describes a release that does not exist. - Stable release notes start from the previous stable tag. - Raw links to the public repository follow its default branch. - Public README and bug form name the Diagnostics row and its button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
4 files changed
+64
-40
No files matched your search
@@ -73,12 +73,14 @@ The server reads `/data/server.json` (`TITANO_DATA_PATH`) and `TITANO_*` environ
|
||||
- publishes self-contained single-file programs, signs them when signing secrets exist, packs
|
||||
`Titano-Setup-<v>.exe` and `Titano-Uploader-Setup-<v>.exe` (`Titano.Tools pack-installer`), signs the setups,
|
||||
zips `Titano-Server-win-x64-<v>.zip` and `Titano-win-x64-portable-<v>.zip`;
|
||||
- writes release notes from the Conventional Commits since the previous tag (`Titano.Tools changelog`);
|
||||
- builds and pushes `ghcr.io/<owner>/titano-server:<v>` (and `:latest` for stable tags) for amd64 and arm64;
|
||||
- computes `SHA256SUMS`, checks the public issue forms, updates the public releases repository and creates (or
|
||||
updates) the GitHub release there. The repository content (README, EULA, `i18n/`, `SHA256SUMS`) follows the
|
||||
newest stable release: a pre-release, or an older tag published again, only gets its release and never becomes
|
||||
*Latest*. Until the first stable release exists, every tag updates the content.
|
||||
- writes release notes from the Conventional Commits since the previous tag (`Titano.Tools changelog`); a stable
|
||||
tag starts from the previous stable tag, so its notes include what its release candidates brought;
|
||||
- once the Windows tests passed, builds and pushes `ghcr.io/<owner>/titano-server:<v>` for amd64 and arm64;
|
||||
- computes `SHA256SUMS`, checks the public issue forms, creates (or updates) the GitHub release in the public
|
||||
repository, then moves the image's `:latest` tag and updates the public repository content (README, EULA,
|
||||
`i18n/`, `SHA256SUMS`). `:latest`, *Latest* and the content follow the newest stable release: a pre-release, or
|
||||
an older tag published again, only gets its release and its `:<v>` image. Until the first stable release exists,
|
||||
every tag updates the content.
|
||||
4. To publish an existing tag again (for example after adding a secret), run *Release* manually with the tag.
|
||||
|
||||
### Secrets and variables
|
||||
@@ -90,7 +92,7 @@ The server reads `/data/server.json` (`TITANO_DATA_PATH`) and `TITANO_*` environ
|
||||
| `SIGN_PFX_BASE64` | secret (optional) | Base64 of the Authenticode code-signing certificate (`.pfx`). Without it builds are unsigned. |
|
||||
| `SIGN_PASSWORD` | secret (optional) | Password of that `.pfx`. |
|
||||
|
||||
`GITHUB_TOKEN` pushes the image to GHCR; no other secret is used.
|
||||
`GITHUB_TOKEN` pushes the image to GHCR and moves its `:latest` tag; no other secret is used.
|
||||
|
||||
### Bootstrapping the public releases repository
|
||||
|
||||
@@ -100,8 +102,8 @@ The server reads `/data/server.json` (`TITANO_DATA_PATH`) and `TITANO_*` environ
|
||||
it as the `RELEASES_TOKEN` secret of this repository.
|
||||
3. Push a pre-release tag (`v0.1.0-rc.1`). The release job copies `deploy/releases-repo/` (README, EULA draft,
|
||||
SECURITY policy, issue forms), the Unraid template and its icon, the compose file and `.env.example`, the dark
|
||||
screenshots, `i18n/` and the latest `SHA256SUMS` into the public repository, rewriting links to its name, then
|
||||
creates the release with the installers.
|
||||
screenshots, `i18n/` and the latest `SHA256SUMS` into the public repository after creating the release with the
|
||||
installers, rewriting links to its name and default branch.
|
||||
4. After the first image push, open the `titano-server` package on GHCR › *Package settings* and set its
|
||||
visibility to **Public** (GitHub offers no API for this; the release summary reminds you).
|
||||
5. Have the EULA draft (`deploy/releases-repo/EULA.md`) reviewed before the first stable release.
|
||||
|
||||
Reference in new issue
Block a user