ci: publish shared runtime images and add release reconciliation
- ci/images: immutable shell/rust(/web planned) images built from the released rc.5 CLI archive and pinned preview bundle, published to the Gitea container registry; consumers use one image tag and only their own entry command. - .woodpecker/reconcile.yml + scripts/reconcile-releases.py: protected-branch manual/cron release discovery, asset byte/SHA verification, idempotent release-tracking Issues; no gitlink mutation or publish. - Commit the child CI/norm gitlinks, document the image set and the remaining limits (web image pull, tool/view migration, release publish workflows). Refs cflmy/marqdo#10
This commit was merged in pull request #21.
This commit is contained in:
1 parent
0bf8a68cf5
commit
4cde0e256a
22 files changed
+709
-12
No files matched your search
@@ -0,0 +1,46 @@
|
||||
# 共享 CI 镜像、单仓 CI 与发布对账(2026-11-27)
|
||||
|
||||
来源:[marqdo#10](https://git.cflmy.cn/cflmy/marqdo/issues/10)。本文件记录本轮 CI/CD 基础设施实现与可验证结果。
|
||||
|
||||
## 共享运行时镜像(Gitea Container Registry)
|
||||
|
||||
组件不再各自安装工具链或重复下载/编译 CLI。根 `ci/images/` 定义并发布不可变镜像:
|
||||
|
||||
| 镜像 | digest | 内容 | 消费方 |
|
||||
| --- | --- | --- | --- |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5` | `sha256:8184439a201d...` | Ubuntu 24.04/glibc 2.39、git/curl/python3/build 工具、已发布 CLI+Bundle(`MARQDO_BIN`/`MARQDO_STDLIB_DIR` 预置) | stdlib、extension、conformance、reconcile |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5` | `sha256:73481a353391...` | shell 镜像 + Rust 1.100(rustfmt/clippy)+ 预热 cargo cache | Design/Preview 与 Rust Tool |
|
||||
| `git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5` | 未发布(Playwright 基础镜像拉取超时) | 计划:Playwright/Node + CLI/Bundle + 打包 preview web Tool | Web 领域浏览器验收 |
|
||||
|
||||
- 镜像通过 `ci/images/build.sh [--push]` 从**已发布 rc.5 CLI 归档**(sha256 固定)与固定预览包构建;标签不可变,按 CLI 版本发布;公开匿名拉取,CI 不需要 registry push 凭据。
|
||||
- 单仓工作流因此只剩本仓入口命令;例如 stdlib/extension/conformance 为:
|
||||
```yaml
|
||||
steps:
|
||||
test:
|
||||
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5
|
||||
commands: [sh scripts/test.sh]
|
||||
```
|
||||
Rust 组件为 `marqdo-ci-rust` + `scripts/ci.sh`。CLI/根仍保留各自专用镜像与门禁(CLI Windows 交叉、根 Playwright/Docker 冷安装),属有限例外。
|
||||
|
||||
## Woodpecker 接入
|
||||
|
||||
- 19 个仓库已在 Woodpecker 激活(std ×6、ext ×3、conformance、Design/Preview、tool ×4、ext-web domain、根、CLI)。
|
||||
- 已写入并合并单仓 `.woodpecker/ci.yml`;std/conformance/ext 的 push/pull_request 镜像 lane 已实际 **success**(例如 conformance 使用 shell 镜像通过)。
|
||||
- `.woodpecker/reconcile.yml`:仅保护默认分支、manual/cron;`release-reconcile` cron `@every 30m` 已创建;根 repo secret `gitea_token` 已设置(不记录值)。
|
||||
- 快速通知路径:组件发布成功后由 release 工作流请求根 reconcile;丢失通知由 cron 补偿。两者共用 `scripts/reconcile-releases.py`,不新增接收服务或第二套协议。
|
||||
|
||||
## 发布对账
|
||||
|
||||
`scripts/reconcile-releases.py`:
|
||||
|
||||
- 从既有 catalog/gitmodules 派生受管仓库,扫描 Gitea release(含 prerelease,排除 draft),验证 tag/资产名、大小与下载字节 SHA-256;
|
||||
- 在根仓库创建带 `release-tracking` 标签与稳定 marker 的追踪 Issue(幂等;历史 release 可用 `--published-after` 基线过滤);
|
||||
- 只创建/更新追踪 Issue,不改 gitlink、不发布、不执行 release body/URL;失败资产验证会报告并返回非零;
|
||||
- 6 个单元测试覆盖 dry-run、资产验证、幂等、draft 过滤、时间过滤、坏资产/路径。
|
||||
|
||||
## 未完成 / 限制
|
||||
|
||||
- `marqdo-ci-web` 未发布:本地拉取 Playwright 基础镜像超时;Web 领域 CI lane 与浏览器验收仍待该镜像或等价的 runner 缓存方案。当前 Web 组件已有 Design/Preview 的 Rust image lane,domain 只有入口脚本。
|
||||
- Tool(view/knowledge/lint/prove)仍保留既有工作流/镜像,尚未全部迁到共享镜像;需在验证后统一。
|
||||
- 组件 release 发布工作流(source archive/tool bundle 上传 + 快速通知)尚未全部落地;当前 CLI rc.5 已发布,reconcile 可追踪新发布。
|
||||
- registry 镜像 digest/扫描策略、runner 拉取缓存与多架构未验证;CI 账号最小权限仍沿用现有项目 token(M0 记录限制)。
|
||||
Reference in new issue
Block a user