Commit Graph

25 Commits

Author SHA1 Message Date
zhengchen.tao 76043e587b build-image workflow 加 OCI 标签实现包仓库自动关联
加两个 OCI 标签到镜像 manifest:

- org.opencontainers.image.source=<repo url>
  Gitea 收包时检测此标签若指向自家 repo URL,自动把包链接到 repo
  的 Packages tab,不再需要手动去 "包设置 → 链接仓库"

- org.opencontainers.image.revision=<full SHA>
  把构建时的源码 commit SHA 烙进 manifest,docker inspect 可反推回
  代码版本,配合 image_tag(commit short hash)形成两层冗余

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 17:08:34 +08:00
zhengchen.tao 2dd8f0994a build-image workflow 设 BUILD_PIPELINE=1 跳过活 API 测试
pkg/exchangerates 里 TestExchangeRatesApiLatestExchangeRateHandler_*
是依赖第三方 API(Bank of Canada / 乌兹别克央行 / 等)的活测试。
upstream Dockerfile 设了 ARG BUILD_PIPELINE,测试代码看到
BUILD_PIPELINE=1 && CHECK_3RD_API!=1 时 return nil 早退。

我们 workflow 之前没传这个 arg,所以默认全跑,国内访问加拿大/
乌兹别克 API 直接超时拉飞 build。对齐 upstream 的 GH Actions
默认值(.github/actions/build-linux-docker-and-package/action.yml
line 91 也是 BUILD_PIPELINE=1)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 16:02:54 +08:00
zhengchen.tao acdbb5bfbe 钉 buildkit 到 v0.13.2 以兼容 DSM 老内核
runc 1.2.0 (2024-09) 引入 procfs 安全检查(CVE-2024-21626),
依赖 openat2 (kernel 5.6+) 与 fsmount/fscontext (kernel 5.2+)。
DSM 7 系列内核仍是 4.4.x,syscall 不存在,runc 启动 build container 时
报 "unsafe procfs detected" 直接失败。

钉 buildkit v0.13.2 自带 runc 1.1.12,绕开新检查。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 15:27:39 +08:00
zhengchen.tao e570e62bf1 添加 .gitea/workflows/build-image.yml 2026-04-28 15:15:10 +08:00
zhengchen.tao f291105322 更新 .gitea/workflows/sync-upstream.yml 2026-04-28 15:06:35 +08:00
zhengchen.tao 0576377c96 更新 .gitea/workflows/sync-upstream.yml 2026-04-28 15:06:10 +08:00
zhengchen.tao 516ee8beb7 更新 .gitea/workflows/sync-upstream.yml 2026-04-28 15:00:52 +08:00
zhengchen.tao 759df5be73 更新 .gitea/workflows/sync-upstream.yml 2026-04-28 14:57:29 +08:00
zhengchen.tao a3f1bda6ae 更新 .gitea/workflows/sync-upstream.yml 2026-04-28 14:56:58 +08:00
zhengchen.tao f1c1846f74 添加 .gitea/workflows/sync-upstream.yml 2026-04-28 14:41:33 +08:00
MaysWind d936b64cf9 build script supports setting the build time and date through environment variables 2025-10-17 21:57:33 +08:00
MaysWind 23a85d6162 update action version 2025-10-13 00:04:05 +08:00
MaysWind 5400a1424c do not check third party response when run tests in ci pipeline 2025-07-02 22:17:25 +08:00
MaysWind 6787d0591e support skip specified tests when build release 2025-03-10 22:02:08 +08:00
MaysWind 319f97bf9e use QEMU 8.1.5 2025-01-31 23:00:08 +08:00
MaysWind da31a67c52 upgrade actions 2025-01-31 22:33:50 +08:00
MaysWind dd155a0f63 add gitea deploy action 2024-12-22 17:21:53 +08:00
MaysWind 10e4bcc723 skip specified tests when build snapshot image 2024-12-08 22:20:16 +08:00
MaysWind 185758b638 use current platform to build frontend assets 2024-03-25 00:30:56 +08:00
MaysWind 2e680b04c9 supports building for different platforms for gitea actions 2023-09-04 23:33:52 +08:00
MaysWind 6b30a0aebc supports building multiple image by gitea actions 2023-09-02 19:33:48 +08:00
MaysWind 439608cf27 remove unused configuration 2023-07-14 22:46:00 +08:00
MaysWind 53a31cd4c4 use variables to replace secrets 2023-07-03 23:02:17 +08:00
MaysWind aff876aa05 only trigger gitea docker-snapshot workflow when push to main branch 2023-05-28 17:59:25 +08:00
MaysWind 0a011b6075 add gitea actions 2023-05-20 23:49:00 +08:00