Skip to content

Commit 71685eb

Browse files
committed
Try caching inline again
1 parent 2f27de8 commit 71685eb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ jobs:
5252
tags: ${{ steps.meta.outputs.tags }}
5353
labels: ${{ steps.meta.outputs.labels }}
5454
cache-from: |
55-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache
56-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ env.TARGET_BRANCH }}
57-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ github.ref_name }}
58-
cache-to: |
59-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache,mode=max
60-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ github.ref_name }},mode=max
55+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:master
56+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TARGET_BRANCH }}
57+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags[0] }}
58+
cache-to: type=inline
6159
env:
6260
TARGET_BRANCH: ${{ github.base_ref || github.ref_name }}

0 commit comments

Comments
 (0)