Skip to content

Commit 943ab96

Browse files
committed
simplify cache key
1 parent 9cbb00a commit 943ab96

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,11 @@ jobs:
270270
${{ steps.docker-tag.outputs.image }}
271271
provenance: false
272272
cache-from: |
273-
type=gha,scope=arm64-${{ github.head_ref || github.ref_name }}
274-
type=gha,scope=arm64-main
275-
type=registry,ref=633607774026.dkr.ecr.us-east-2.amazonaws.com/back-end-cache:${{ github.head_ref || github.ref_name }}
276-
type=registry,ref=633607774026.dkr.ecr.us-east-2.amazonaws.com/back-end-cache:main
273+
type=gha,scope=arm64
274+
type=registry,ref=633607774026.dkr.ecr.us-east-2.amazonaws.com/back-end-cache:latest
277275
cache-to: |
278-
type=gha,mode=max,scope=arm64-${{ github.head_ref || github.ref_name }}
279-
type=registry,ref=633607774026.dkr.ecr.us-east-2.amazonaws.com/back-end-cache:${{ github.head_ref || github.ref_name }},mode=max
276+
type=gha,mode=max,scope=arm64
277+
type=registry,ref=633607774026.dkr.ecr.us-east-2.amazonaws.com/back-end-cache:latest,mode=max
280278
281279
- name: Output image URI
282280
if: steps.can-push.outputs.push == 'true'

0 commit comments

Comments
 (0)