From 71685eb96d730a7496294ed9e76aa97fe634d688 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 11 Oct 2024 13:46:38 -0400 Subject: [PATCH] Try caching inline again --- .github/workflows/docker.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f8d86052..ddfcccaa 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -52,11 +52,9 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: | - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ env.TARGET_BRANCH }} - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ github.ref_name }} - cache-to: | - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache,mode=max - type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ github.ref_name }},mode=max + type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:master + type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TARGET_BRANCH }} + type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags[0] }} + cache-to: type=inline env: TARGET_BRANCH: ${{ github.base_ref || github.ref_name }}