Charile Zhou
294241a7fd
perf(docker): 添加阿里云 Alpine 镜像源加速 apk 包下载
...
Deploy / Build and Push Images (push) Waiting to run
Deploy / Deploy to Knative (push) Blocked by required conditions
- 配置 mirrors.aliyun.com 替代官方源
- 加速 python3、make、g++ 等构建工具的下载
- 显著提升构建速度
2026-01-23 00:40:55 +08:00
Charile Zhou
839e321fb7
fix(docker): 重新添加构建工具以支持离线环境
...
问题:
- 构建环境无法访问 GitHub (connect ETIMEDOUT)
- bcrypt 无法下载预编译二进制,尝试从源代码编译
- 缺少 python3/make/g++ 导致编译失败
原因:
- 即使是 amd64 架构,在无法访问 GitHub 的离线环境下
- bcrypt 等 native modules 也需要构建工具作为 fallback
解决:
- 重新安装 python3、make、g++ 用于编译 native modules
- 仅在 base 阶段安装,最终 runner 镜像不包含这些工具
2026-01-23 00:40:18 +08:00
Charile Zhou
e08759b869
revert: 移除 Alpine 镜像源和构建工具配置
...
Deploy / Build and Push Images (push) Failing after 5m8s
Deploy / Deploy to Knative (push) Has been skipped
- 移除阿里云 Alpine 镜像源配置
- 移除 python3/make/g++ 构建工具安装
- 原��:仅构建 amd64 架构,bcrypt 可直接使用预编译二进制
- 简化 Dockerfile,减少镜像构建时间和体积
2026-01-23 00:33:42 +08:00
Charile Zhou
ad41866e88
revert: 移除多架构镜像构建配置
...
Deploy / Deploy to Knative (push) Has been cancelled
Deploy / Build and Push Images (push) Has been cancelled
- 移除 platforms: linux/amd64,linux/arm64 配置
- 恢复为单架构构建(默认 linux/amd64)
- 原因:ARM64 构建时 apk ���发脚本在 QEMU 模拟环境下执行失败
2026-01-23 00:31:20 +08:00
Charile Zhou
f26cd1a739
perf(docker): 配置阿里云 Alpine 镜像源加速构建
...
Deploy / Build and Push Images (push) Failing after 1m53s
Deploy / Deploy to Knative (push) Has been skipped
- 使用阿里云 mirrors.aliyun.com 替代官方 dl-cdn.alpinelinux.org
- 显著加速 apk 包下载速度(python3, make, g++ 等)
- 对国内网络环境友好
2026-01-23 00:24:20 +08:00
Charile Zhou
9b24ef50d7
fix(docker): 安装构建工具支持 native modules 编译
...
Deploy / Deploy to Knative (push) Has been cancelled
Deploy / Build and Push Images (push) Has been cancelled
问题:
- ARM64 架构编译时,bcrypt 无法从 GitHub 下载预编译二进制
- Alpine 镜像中缺少 Python 和编译工具,导致从源代码编译失败
解决方案:
- 在 base 阶段安装 python3、make、g++
- 这些工具在 deps/builder 阶段用于编译 native modules
- 最终 runner 镜像中不包含这些工具(已编译的二进制从中间镜像复制)
支持的架构:linux/amd64 和 linux/arm64
2026-01-23 00:19:33 +08:00
Charile Zhou
5ce21e2008
fix(docker): 修复 prod-deps 阶段 Prisma Client 生成失败
...
Deploy / Build and Push Images (push) Failing after 14m59s
Deploy / Deploy to Knative (push) Has been skipped
问题:
- prod-deps 阶段使用 --prod 安装时不包含 devDependencies
- pnpm db:generate 依赖 dotenv-cli 和 prisma(都是 devDependencies)
- 导致 "sh: dotenv: not found" 错误
解决方案:
- 先安装所有依赖(包括 devDependencies)
- 生成 Prisma Client
- 使用 pnpm prune --prod 删除 devDependencies
- 保持最终镜像体积最小化
2026-01-22 23:57:56 +08:00
Charile Zhou
0d6d6117ea
feat(ci): 添加多架构镜像构建支持
...
- 支持 linux/amd64 和 linux/arm64 架构
- 同时构建 Web 和 API 镜像的多架构版本
- Harbor 镜像仓库将存储 multi-platform manifest
2026-01-22 23:54:33 +08:00
Charile Zhou
f6670372a1
chore: 配置 Verdaccio npm 镜像源
...
- 添加 registry 配置指向内部 Verdaccio 镜像
- 保留原有的 peer dependencies 配置
- 统一开发和构建环境的包管理源
2026-01-22 23:49:09 +08:00
Charile Zhou
4e8b660213
refactor(docker): 简化镜像源配置,统一在 base stage 设置
...
Deploy / Build and Push Images (push) Failing after 2m39s
Deploy / Deploy to Knative (push) Has been skipped
- 移除无用的 npm config set(项目使用 pnpm)
- 在 base stage 统一设置 pnpm config,deps 和 prod-deps 自动继承
- 减少重复配置,代码更简洁
2026-01-22 23:42:53 +08:00
Charile Zhou
fd5efabd76
feat(docker): 使用内部 Verdaccio npm 镜像源
...
- 所有 npm registry 从 npmmirror.com 改为 verdaccio.tegical.world
- 包括 Corepack、npm 和 pnpm 的镜像源配置
- 完全隔离外网依赖,提升构建速度和稳定性
2026-01-22 23:40:53 +08:00
Charile Zhou
02f48c2955
fix(docker): 配置 Corepack 使用 npmmirror 下载 pnpm
...
Deploy / Build and Push Images (push) Failing after 4m40s
Deploy / Deploy to Knative (push) Has been skipped
- 添加 ENV COREPACK_NPM_REGISTRY 环境变量
- 解决 Corepack 仍然尝试从 registry.npmjs.org 下载 pnpm 的问题
- npm config 只影响 npm,Corepack 需要单独配置
2026-01-22 23:28:15 +08:00
Charile Zhou
76c03f95f1
feat(web): 添加 public 目录
...
Deploy / Build and Push Images (push) Failing after 4m7s
Deploy / Deploy to Knative (push) Has been skipped
- 创建 apps/web/public 目录用于存放静态资源
- 添加 .gitkeep 确保空目录被 Git 追踪
- 兼容 Dockerfile 中的 COPY public 指令
2026-01-22 23:08:15 +08:00
Charile Zhou
9a1285b4cc
fix(docker): 配置 npm 镜像源解决网络访问问题
...
Deploy / Build and Push Images (push) Failing after 3m6s
Deploy / Deploy to Knative (push) Has been skipped
- 配置 npm registry 为 https://registry.npmmirror.com
- 解决 Corepack 下载 pnpm 超时问题
- 配置 pnpm registry 加速依赖安装
- 应用于所有 stage (deps, prod-deps)
2026-01-22 23:00:37 +08:00
Charile Zhou
0201b5336e
feat(docker): 使用 Harbor 内部代理拉取 Node 镜像
...
Deploy / Build and Push Images (push) Failing after 1m51s
Deploy / Deploy to Knative (push) Has been skipped
- Node 镜像改为 harbor.tegical.world/docker.io/node:24.11.1-alpine
- 通过内部 Harbor 代理访问 Docker Hub,避免网络问题
- 提升镜像拉取速度和稳定性
2026-01-22 22:53:34 +08:00
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
...
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
31ca44dbc3
refactor(docker): runner stage 复用 base 而非重新 FROM
...
Deploy / Build and Push Images (push) Failing after 1m29s
Deploy / Deploy to Knative (push) Has been skipped
- 将 runner stage 从 'FROM node:20-alpine' 改为 'FROM base'
- 统一版本管理,只需修改 base stage 一处
- 避免 base 和 runner 使用不同 Node 版本的风险
2026-01-22 22:41:05 +08:00
Charile Zhou
771920afbc
fix(docker): 对齐 Node 版本并简化 pnpm 配置
...
Deploy / Deploy to Knative (push) Has been cancelled
Deploy / Build and Push Images (push) Has been cancelled
- Node 版本从 20 升级到 24.11.1,与 .nvmrc 保持一致
- 移除 corepack prepare pnpm@9,由 package.json 的 packageManager 字段管理
- Corepack 会自动读取 packageManager: "pnpm@9.15 .2" 并使用
2026-01-22 22:39:48 +08:00
Charile Zhou
0a87cf8939
fix(docker): 移除 syntax 指令避免访问 Docker Hub
...
Deploy / Deploy to Knative (push) Has been cancelled
Deploy / Build and Push Images (push) Has been cancelled
- 移除 Dockerfile 第一行的 syntax=docker/dockerfile:1
- 该指令会导致 BuildKit 尝试从 Docker Hub 拉取镜像
- 修复无法访问 Docker Hub 导致的构建失败问题
- 对于标准 Dockerfile 特性,此指令非必需
2026-01-22 22:38:15 +08:00
Charile Zhou
097658606b
refactor(ci): 直接使用 vars.IMAGE_REGISTRY 不通过 env 套一层
...
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
...
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 镜像仓库
...
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 加速镜像推送"
...
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 加速镜像推送
...
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
...
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
48aaea7773
Merge pull request 'test/ci-workflow' ( #7 ) from test/ci-workflow into main
...
Deploy / Build and Push Images (push) Failing after 1m41s
Deploy / Deploy to Knative (push) Has been skipped
Reviewed-on: #7
Reviewed-by: gitea_admin <gitea@local.domain >
2026-01-22 10:36:57 +00:00
charilezhou
a632d48590
ci: 移除 pnpm 缓存配置
...
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 配置版本
...
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 缓存
...
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 级别配置
...
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 依赖包缓存配置
...
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 缺失问题
...
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: 移除手动触发配置
...
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: 添加手动触发支持
...
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