mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
ci: 添加GitHub Actions CI/CD流水线
- CI: PR触发自动化测试(lint + type check + bun test) - CD: push到main/tag触发Docker镜像构建并发布到GHCR - 修复Dockerfile中bun.lockb→bun.lock引用 - 修复tsconfig.json排除测试文件避免dist中重复 - 修复file-review-store测试排序时间戳竞态
This commit is contained in:
@@ -4,7 +4,7 @@ FROM oven/bun:1 as frontend-builder
|
||||
WORKDIR /app/frontend
|
||||
|
||||
# 拷贝前端的 package.json 和 lockfile
|
||||
COPY frontend/package.json frontend/bun.lockb ./
|
||||
COPY frontend/package.json frontend/bun.lock* ./
|
||||
|
||||
# 安装前端依赖
|
||||
RUN bun install --frozen-lockfile
|
||||
@@ -22,7 +22,7 @@ FROM oven/bun:1 as backend-builder
|
||||
WORKDIR /app
|
||||
|
||||
# 拷贝后端的 package.json 和 lockfile
|
||||
COPY package.json bun.lockb ./
|
||||
COPY package.json bun.lock* ./
|
||||
|
||||
# 只安装生产环境依赖
|
||||
RUN bun install --frozen-lockfile --production
|
||||
|
||||
Reference in New Issue
Block a user