fix: 新增 CACHE_BUST 參數以強制重新執行模型下載層,改善下載穩定性
This commit is contained in:
parent
4b0f77aa2d
commit
0f5bf46111
3 changed files with 46 additions and 5 deletions
3
.github/workflows/docker-e2e-tests.yml
vendored
3
.github/workflows/docker-e2e-tests.yml
vendored
|
|
@ -83,6 +83,9 @@ jobs:
|
|||
tags: ${{ env.REGISTRY }}/${{ env.REPO }}:test-${{ github.sha }}
|
||||
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO }}:buildcache-linux-amd64
|
||||
cache-to: type=inline
|
||||
# 🔥 CACHE_BUST 強制重新執行模型下載層
|
||||
build-args: |
|
||||
CACHE_BUST=${{ github.run_id }}${{ github.run_attempt }}
|
||||
|
||||
- name: Set image output
|
||||
id: image
|
||||
|
|
|
|||
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
|
|
@ -195,8 +195,10 @@ jobs:
|
|||
cache-from: type=registry,ref=ghcr.io/${{ env.REPO }}:buildcache-${{ env.PLATFORM_PAIR }}
|
||||
cache-to: type=registry,ref=ghcr.io/${{ env.REPO }}:buildcache-${{ env.PLATFORM_PAIR }},mode=max,compression=zstd
|
||||
# 設定 build 參數
|
||||
# 🔥 CACHE_BUST 使用時間戳強制重新執行模型下載層
|
||||
build-args: |
|
||||
BUILDKIT_INLINE_CACHE=1
|
||||
CACHE_BUST=${{ github.run_id }}${{ github.run_attempt }}
|
||||
|
||||
- name: Export digest
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue