From fc608b31d753fe4ef83e55d47a62d81f4be24a12 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 7 Jul 2025 16:48:58 -0600 Subject: [PATCH] Fix build caching (#19029) --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b787b273..44f472beb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: target: frigate tags: ${{ steps.setup.outputs.image-name }}-amd64 cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64 + cache-to: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max arm64_build: runs-on: ubuntu-22.04-arm name: ARM Build @@ -161,8 +162,8 @@ jobs: files: docker/tensorrt/trt.hcl set: | tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt - *.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64 - *.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max + *.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-tensorrt + *.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-tensorrt,mode=max - name: AMD/ROCm general build env: AMDGPU: gfx @@ -176,7 +177,7 @@ jobs: set: | rocm.tags=${{ steps.setup.outputs.image-name }}-rocm *.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-rocm,mode=max - *.cache-from=type=gha + *.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-rocm arm64_extra_builds: runs-on: ubuntu-22.04-arm name: ARM Extra Build