From 84df7a58d9b64aa4e0fe91ca288c357b126c0e2b Mon Sep 17 00:00:00 2001 From: fristyxd Date: Fri, 30 Oct 2026 20:24:24 +0300 Subject: [PATCH] ci: reuse image layers via registry build cache The docker driver cannot export cache, so add setup-buildx (docker-container driver) and push/pull the build cache from :buildcache. --- .gitea/workflows/deploy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 5eaeb74..1ba294c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -29,6 +29,8 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.REGISTRY_TOKEN }} + - name: Set up Buildx + uses: docker/setup-buildx-action@v3 - name: Resolve tags id: meta uses: docker/metadata-action@v5 @@ -43,6 +45,8 @@ jobs: with: context: . push: true + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} -- 2.54.1