release: bump version to 0.84.2
ci / backend (push) Waiting to run
ci / frontend (push) Waiting to run

This commit is contained in:
rayd1o committed 2026-12-05 01:56:03 +08:00
1 parent 5e6352f524
commit 30b44ec00d
77 files changed
+3312 -1039

No files matched your search

+2 -2
View File
@@ -487,9 +487,9 @@ Run the following command from the tagged commit.
python3 scripts/release_publish.py --tag "$(git describe --tags --exact-match)" --use-git-credential
```
The publisher classifies changed files from the tag commit (`scripts/release_scope.py`), builds Linux amd64 images only for changed services, and pushes OCI `release-manifest:<tag>` as the canonical deployment manifest. When a release contains no client or Earth hotfix update (`client.mode == "none"`), it skips desktop packaging and **does not create a Gitea Release**; Gitea Releases are created only for releases with L1 hotfixes (`hotfix`) or full desktop packages (`full`). Pass `--assets-dir client/release` to reuse complete packages and a hotfix built for that tag. Repeat the same command after an interrupted upload to reuse the original build and verified attachments. The workstation can go offline once publication succeeds.
The publisher classifies changed files from the tag commit (`scripts/release_scope.py`), builds Linux amd64 images only for changed services, and pushes OCI `release-manifest:<tag>` as the canonical deployment manifest. When a release contains no desktop shell update (`client.mode == "none"` or `"hotfix"`), it **does not create a Gitea Release** (for `hotfix`, the L1 Earth hotfix bundle and release notes are embedded directly inside OCI `release-manifest:<tag>` so Gitea `/releases/latest` always preserves full desktop installers); Gitea Releases are created only for full desktop client updates (`client.mode == "full"`). Pass `--assets-dir client/release` to reuse complete packages and a hotfix built for that tag. Repeat the same command after an interrupted upload to reuse the original build and verified attachments. The workstation can go offline once publication succeeds.
The production host checks the latest stable Git tags and OCI `release-manifest:<tag>` (plus Gitea Releases when client updates exist) approximately every two minutes using `planet-release-deploy.timer`. Once the manifest and digests are verified, it pulls only changed images by digest, backs up PostgreSQL, rolls out changed services, verifies endpoints, and publishes/verifies the Earth hotfix only when `client.mode != "none"`. The host retains its Compose configuration, memory limits, and data volumes. Apply the release-specific infrastructure migration first when a release requires new mounts, services, or incompatible database changes.
The production host checks the latest stable Git tags and OCI `release-manifest:<tag>` (plus Gitea Releases for full-shell or legacy releases) approximately every two minutes using `planet-release-deploy.timer`. Once the manifest and digests are verified, it pulls only changed images by digest, backs up PostgreSQL, rolls out changed services, verifies endpoints, and publishes/verifies the Earth hotfix from OCI or Gitea Release whenever `client.mode != "none"`. The host retains its Compose configuration, memory limits, and data volumes. Apply the release-specific infrastructure migration first when a release requires new mounts, services, or incompatible database changes.
A failed rollout restores the previous application images and hotfix manifest while preserving database writes. An interrupted rollout resumes recovery on the next check. A failed version waits for an explicit retry or a newer release. The most recent pre-change database backups and version records are under `/var/lib/planet-release-deploy/last-success/` and `last-failed/`. Retry after resolving the underlying error.
+2 -2
View File
@@ -487,9 +487,9 @@ docker --config "${XDG_CONFIG_HOME:-$HOME/.config}/planet/registry" login gitea.
python3 scripts/release_publish.py --tag "$(git describe --tags --exact-match)" --use-git-credential
```
发布器从标签提交识别改动范围(`scripts/release_scope.py`),仅构建变更服务的 Linux amd64 镜像,并把完整部署清单写入 OCI `release-manifest:<tag>`。当版本不包含客户端或 Earth 热更变更(`client.mode == "none"`)时,不构建桌面客户端且**不创建新的 Gitea Release**;仅当包含 L1 热更或桌面客户端更新(`hotfix` / `full`)时才创建 Gitea Release 并附带 `release-manifest.json` 与对应安装包/热更包。已经备好该标签的各平台安装包和热更新包时可加 `--assets-dir client/release`。上传中断后重复同一命令即可复用已构建的镜像和已校验的附件。发布命令成功后可以关闭本机。
发布器从标签提交识别改动范围(`scripts/release_scope.py`),仅构建变更服务的 Linux amd64 镜像,并把完整部署清单写入 OCI `release-manifest:<tag>`。当版本不包含桌面客户端壳包更新(`client.mode == "none"` 或 `"hotfix"`)时,**不创建新的 Gitea Release**(其中 `hotfix` 会把 L1 Earth 热更包与变更说明直接打入 OCI `release-manifest:<tag>`,从而让 Gitea `/releases/latest` 始终保留全平台桌面安装包);仅当包含全平台桌面客户端更新(`client.mode == "full"`)时才创建 Gitea Release 并附带 `release-manifest.json` 与对应安装包/热更包。已经备好该标签的各平台安装包和热更新包时可加 `--assets-dir client/release`。上传中断后重复同一命令即可复用已构建的镜像和已校验的附件。发布命令成功后可以关闭本机。
生产机的 `planet-release-deploy.timer` 约每两分钟检查 Gitea 最新正式标签、OCI `release-manifest:<tag>`(及客户端更新版本对应的 Gitea Release)。确认清单与摘要齐全后,服务按不可变摘要仅拉取并滚动更新有变动的容器,备份 PostgreSQL,验证健康接口;仅在 `client.mode != "none"` 时发布并回读 Earth 热更新包。主机沿用当前生产 Compose、内存限制和数据卷。需要新增挂载、服务或数据库不兼容变更时,先按该版本的迁移方案调整主机配置。
生产机的 `planet-release-deploy.timer` 约每两分钟检查 Gitea 最新正式标签、OCI `release-manifest:<tag>`(及客户端全量/历史版本对应的 Gitea Release)。确认清单与摘要齐全后,服务按不可变摘要仅拉取并滚动更新有变动的容器,备份 PostgreSQL,验证健康接口;当 `client.mode != "none"` 时自动从 OCI 或 Release 读取并发布、回读 Earth 热更新包。主机沿用当前生产 Compose、内存限制和数据卷。需要新增挂载、服务或数据库不兼容变更时,先按该版本的迁移方案调整主机配置。
上线失败时,服务恢复上一版的镜像摘要和热更新清单,保留数据库里的业务写入。事务记录在重启后仍可恢复。失败的版本会暂停自动重试,较新的正式版仍可上线。`/var/lib/planet-release-deploy/last-success/` 和 `last-failed/` 分别保留最近一次成功或失败切换前的数据库备份和版本信息。确认故障已排除后可以单独重试该版本。