ci: 添加 Epic UI 构建和部署工作流

- 新增 CI/CD 工作流文件,实现前端项目的自动构建和部署
- 支持 main、master 和 develop 分支的自动构建- 包含代码检出、环境安装、依赖管理、项目构建等步骤
- 实现构建产物的自动部署和 Docker 容器重启
This commit is contained in:
hu xiaotong
2025-07-08 11:15:58 +08:00
parent 3d563dbf1d
commit bdb649df03
2 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ jobs:
runs-on: gitea_labels
container:
image: gitea-ci-bash:latest
env:
env:
# 指定容器将工具缓存路径存放到 /opt/hostedtoolcache该目录是Gitea Runner的标准工具缓存目录
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
steps:

View File

@@ -97,9 +97,9 @@ docker run -d \
### 缓存目录说明
- `/cache/pnpm-store`: pnpm 全局缓存
- `/cache/node_modules`: 项目依赖缓存
- `/cache/build-cache`: 构建产物缓存
- `/opt/hostedtoolcache/pnpm-store`: pnpm 全局缓存
- `/opt/hostedtoolcache/node_modules`: 项目依赖缓存
- `/opt/hostedtoolcache/build-cache`: 构建产物缓存
### 性能优化建议