diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 2026aa4..1cc13e8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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: diff --git a/README.md b/README.md index e42d63b..17ae99c 100644 --- a/README.md +++ b/README.md @@ -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`: 构建产物缓存 ### 性能优化建议