18 Commits

Author SHA1 Message Date
Charile Zhou
b6b0c229ef revert: 移除 Docker Buildx driver 配置
- 恢复使用默认的 docker-container driver
- 支持更完整的 BuildKit 特性
2026-01-22 22:50:42 +08:00
Charile Zhou
a83de0cc0d ci: 配置 Docker Buildx 使用 docker driver
Some checks failed
Deploy / Build and Push Images (push) Failing after 1m8s
Deploy / Deploy to Knative (push) Has been skipped
- 添加 driver: docker 配置
- 使用 Docker 原生构建器而非 docker-container
- 更简单轻量,适合标准构建场景
2026-01-22 22:47:20 +08:00
Charile Zhou
097658606b refactor(ci): 直接使用 vars.IMAGE_REGISTRY 不通过 env 套一层
Some checks failed
Deploy / Build and Push Images (push) Failing after 1m39s
Deploy / Deploy to Knative (push) Has been skipped
- 移除不必要的 env.REGISTRY 定义
- 所有引用直接使用 ${{ vars.IMAGE_REGISTRY }}
- 减少间接引用,代码更简洁直观
2026-01-22 22:35:09 +08:00
Charile Zhou
e394358946 fix(ci): 使用 vars 而非 secrets 访问 IMAGE_REGISTRY
Some checks failed
Deploy / Deploy to Knative (push) Has been cancelled
Deploy / Build and Push Images (push) Has been cancelled
- IMAGE_REGISTRY 配置为 repository variable 而非 secret
- 使用 ${{ vars.IMAGE_REGISTRY }} 替代 ${{ secrets.IMAGE_REGISTRY }}
2026-01-22 22:33:43 +08:00
Charile Zhou
7889037b0e feat(ci): 集成 Harbor 镜像仓库
Some checks failed
Deploy / Build and Push Images (push) Failing after 1m1s
Deploy / Deploy to Knative (push) Has been skipped
- 使用 secrets.IMAGE_REGISTRY 配置仓库地址
- 使用 Harbor Robot 账号进行镜像推送认证
- Knative Service 添加 harbor-registry-secret 拉取认证
- 支持动态替换镜像仓库地址和标签占位符
2026-01-22 22:31:21 +08:00
Charile Zhou
45e3542558 Revert "perf(ci): 使用 Kubernetes 内部 Service 加速镜像推送"
Some checks failed
Deploy / Build and Push Images (push) Failing after 1m1s
Deploy / Deploy to Knative (push) Has been skipped
This reverts commit af159b6b4f.
2026-01-22 22:12:05 +08:00
Charile Zhou
af159b6b4f perf(ci): 使用 Kubernetes 内部 Service 加速镜像推送
Some checks failed
Deploy / Build and Push Images (push) Failing after 45s
Deploy / Deploy to Knative (push) Has been skipped
- 使用 gitea-http.infra.svc.cluster.local:3000 替代外部域名
- 避免流量经过外部网络,提升推送速度
- 配置 BuildKit 支持 HTTP insecure registry
- 同一集群内部通信,延迟更低
2026-01-22 22:07:22 +08:00
Charile Zhou
6323f6b361 fix(ci): 修复 Docker 登录认证变量
- 使用 github.actor 替代 gitea.actor
- 使用 secrets.GITHUB_TOKEN 替代 secrets.GITEA_TOKEN
- Gitea Actions 为兼容 GitHub Actions 使用相同的上下文命名
2026-01-22 22:04:40 +08:00
Charile Zhou
1a921c725e ci: 使用 Gitea 内置认证变量替代手动配置的 Secrets
Some checks failed
Deploy / Build and Push Images (push) Failing after 59s
Deploy / Deploy to Knative (push) Has been skipped
- 工作流配置改用 gitea.actor 和 GITEA_TOKEN
- 更新部署文档,移除镜像仓库凭证配置说明
- 添加手动部署的 docker login 步骤
2026-01-22 21:56:34 +08:00
charilezhou
a632d48590 ci: 移除 pnpm 缓存配置
All checks were successful
CI / Build Check (pull_request) Successful in 2m10s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 18:22:07 +08:00
charilezhou
e98c726796 fix(ci): 使用 .nvmrc 和 packageManager 配置版本
All checks were successful
CI / Build Check (pull_request) Successful in 2m21s
- Node.js 版本从 .nvmrc 读取
- pnpm 版本从 package.json 的 packageManager 字段读取
- 移除硬编码的版本号

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 18:19:41 +08:00
charilezhou
c5e08b5632 ci: 使用 registry 缓存替代 gha 缓存
Some checks failed
CI / Build Check (pull_request) Failing after 1m28s
Docker 构建缓存改为存储在镜像仓库中,兼容 Gitea Actions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 18:17:13 +08:00
charilezhou
a82144a676 ci: 移除容器配置,改为 Runner 级别配置
Some checks failed
CI / Build Check (pull_request) Failing after 4m51s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 18:08:57 +08:00
charilezhou
a211da4468 ci: 添加 pnpm 依赖包缓存配置
Some checks failed
CI / Build Check (pull_request) Failing after 33s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 18:02:26 +08:00
charilezhou
9c93e324dd fix(ci): 添加容器镜像配置解决 Node.js 缺失问题
Some checks failed
CI / Build Check (pull_request) Failing after 25s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 18:00:41 +08:00
charilezhou
fbe88764e5 ci: 移除手动触发配置
Some checks failed
CI / Build Check (pull_request) Failing after 1m18s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 17:50:46 +08:00
charilezhou
42501148b9 ci: 添加手动触发支持
Some checks failed
CI / Build Check (pull_request) Failing after 4m43s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 17:45:45 +08:00
charilezhou
08bd6397c8 ci: 添加 Gitea Actions CI/CD 和 Knative 部署配置
- 添加 CI workflow(PR 构建检查)
- 添加 Deploy workflow(main 分支自动部署)
- 添加 Web/API 多阶段 Dockerfile
- 添加 Knative Service 配置(自动扩缩容)
- 添加 K8s ConfigMap、Secret、Namespace 配置
- 添加 .dockerignore 优化构建

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 17:38:28 +08:00