为构建参数添加 BUILDKIT_INLINE_CACHE 选项,以优化 Docker 构建缓存

This commit is contained in:
严浩
2025-05-11 19:48:00 +08:00
parent 4470aa1363
commit 3bf0746912

View File

@ -86,6 +86,7 @@ jobs:
load: true load: true
build-args: | build-args: |
SHA=${{ github.sha }} SHA=${{ github.sha }}
BUILDKIT_INLINE_CACHE=1
# ##### # #####
# scope: https://github.com/docker/build-push-action/issues/252#issuecomment-881050512 # scope: https://github.com/docker/build-push-action/issues/252#issuecomment-881050512
# cache-to: mode=max # cache-to: mode=max