From 3b671d60863e2ec15556e386545d296aee5023df Mon Sep 17 00:00:00 2001 From: injet Date: Wed, 23 Sep 2026 17:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/build-ima?= =?UTF-8?q?ge.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-image.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml index a2a9b76c7..bf46b5a7e 100644 --- a/.gitea/workflows/build-image.yaml +++ b/.gitea/workflows/build-image.yaml @@ -44,7 +44,9 @@ jobs: context: . file: Dockerfile.gitea push: true + cache-from: type=registry + cache-to: type=registry,mode=max tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tag }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-latest - # 注意:type=gha 缓存在本实例的 runner 上会 404(cache server 未配),勿加回 +