From 88125935d1162f2fc6a1773b145ceeceec06fe1a Mon Sep 17 00:00:00 2001 From: Hendrik Date: Fri, 17 Apr 2026 16:16:07 +0200 Subject: [PATCH] ci: switch build cache from type=gha to type=registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gitea Actions cache HTTP backend times out on export (dial tcp 172.20.8.x:xxxxx: i/o timeout), failing the job even though the image push itself succeeds. Registry cache stores layer cache as a dedicated tag ':buildcache' in the same container registry that already holds the images — reliable and self-contained. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index e9e8bd4..f31c354 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -57,5 +57,7 @@ jobs: platforms: linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + # Registry-based cache: uses the image registry itself for layer reuse. + # Avoids the unreliable Gitea Actions cache HTTP backend. + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max