From f8c8c9158ec4cae20ac5f2a3135976ded0816022 Mon Sep 17 00:00:00 2001 From: funman300 Date: Wed, 13 May 2026 16:28:10 -0700 Subject: [PATCH] ci: add Docker BuildKit registry cache to speed up Rust builds Caches compiled dependency layers in the Gitea registry under :buildcache. Subsequent builds that only touch solitaire_server/src/ skip recompiling the full workspace dependency tree. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/docker-build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 156accf..ed3f6b0 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -36,6 +36,11 @@ jobs: username: ${{ gitea.actor }} password: ${{ secrets.CI_TOKEN }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver-opts: network=host + - name: Build and push uses: docker/build-push-action@v5 with: @@ -45,6 +50,8 @@ jobs: tags: | ${{ env.IMAGE }}:${{ steps.meta.outputs.sha }} ${{ env.IMAGE }}:latest + cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache + cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max - name: Install kustomize run: |