From b4ff239ab32cfda86ebc8ed8365f4af2062c6f94 Mon Sep 17 00:00:00 2001 From: fristyxd Date: Fri, 30 Oct 2026 20:26:14 +0300 Subject: [PATCH] ci: reuse image layers via registry build cache Add setup-buildx (docker-container driver) and pull/push 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 0f3b236..47d3e9d 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