fix(ci): 使用本地文件系统缓存替代GitHub Actions缓存
Some checks failed
Build and Push Docker / build (push) Failing after 47m55s

- 将 cache type 从 gha 改为 local
- 缓存路径设为 /data/.buildx-cache (Runner持久化目录)
- 添加 Move cache 步骤防止缓存损坏
This commit is contained in:
movingsam 2026-03-01 14:15:32 +08:00
parent 36de011e2d
commit f163d6c92a

View File

@ -56,5 +56,11 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
BUILD_VERSION=${{ steps.version.outputs.version }} BUILD_VERSION=${{ steps.version.outputs.version }}
cache-from: type=gha cache-from: type=local,src=/data/.buildx-cache
cache-to: type=gha,mode=max cache-to: type=local,dest=/data/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /data/.buildx-cache
mv /data/.buildx-cache-new /data/.buildx-cache