fix(ci): 使用本地文件系统缓存替代GitHub Actions缓存
Some checks failed
Build and Push Docker / build (push) Failing after 47m55s
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:
parent
36de011e2d
commit
f163d6c92a
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user