Commit Graph

7 Commits

Author SHA1 Message Date
zhengchen.tao 97b8cfc984 ci: 砍掉构建里的多余动作
Build and Deploy Blog / build (push) Successful in 19s
- fetch-depth: 0 → 默认浅克隆(没启用 enableGitInfo,Hugo 不读 git 历史)
- submodules: recursive → true(只有 themes/stack 一层,无嵌套)
- install → mv(二进制解压即可执行,不需要 chmod/chown)
2026-05-04 01:11:48 +08:00
zhengchen.tao 4a68e6e07f fix: 更新标题为“陶政辰的笔记本”
Build and Deploy Blog / build (push) Failing after 10m44s
2026-05-03 22:21:19 +08:00
zhengchen.tao c1f92a9b50 ci: 删 apk add 步骤(已 bake 进 runner 镜像)
Build and Deploy Blog / build (push) Failing after 59s
2026-05-03 22:07:41 +08:00
zhengchen.tao 50e547ae56 ci: 改用 host-mode runner,删掉无效的 container.volumes
Build and Deploy Blog / build (push) Failing after 26s
act_runner v0.4.1 在 label 带 docker:// 的情况下会静默丢弃 jobs.<id>.container
块和 container.options 里的 -v(实测两条都不工作),改让 step 直接在 runner 容器
内跑,/blog-public 由 runner docker-compose 直接 bind 到 NAS。

- 删 jobs.build.container 块(被 runner 忽略,留着只是误导)
- 删 verify mount 步骤(host 模式下挂载是 compose 层保证的)
- 删 paths-ignore: deploy/**(repo 里没有)
- Alpine runner 用 apk 装 curl/tar/rsync/git/bash
2026-05-03 22:03:29 +08:00
zhengchen.tao 77e588d99a fix(ci): 加 jobs.build.container 显式声明 image + volumes
Build and Deploy Blog / build (push) Failing after 11m26s
act_runner v0.4.1 的全局 container.options 不 honor,改走
jobs.<name>.container.volumes 这条官方路径,配合 nas-infra
gitea-runner config 的 valid_volumes 白名单。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 16:29:45 +08:00
zhengchen.tao 40a38c8c14 ci: 加 mount fail-fast,防止 silent success(rsync 写到 job 容器临时目录)
Build and Deploy Blog / build (push) Failing after 1m48s
诊断 act_runner container.options 是否真生效,避免 build 0 退出码但 NAS 上是空目录。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 16:21:28 +08:00
zhengchen.tao 9c6188c2f7 init: Hugo + Stack 主题 + 首批 3 篇文章 + Gitea Actions 自动部署
Build and Deploy Blog / build (push) Successful in 5m9s
- Stack 主题 + 自定义 padding 与标题样式 (assets/scss/custom.scss)
- 内容: HTTPS 旅程 / AI 工程师地图 / Xray Reality
- 页面: 首页 / 文章 / 归档 / 关于 / 搜索
- CI: Gitea Actions push → hugo --minify → rsync 到 NAS
  应用 Gitea Actions 模板 §4.4-4.5 经验: paths-ignore (注意不排除 **.md)
  + concurrency cancel-in-progress + summary

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 15:56:04 +08:00