Skip to content

Commit 90bb69a

Browse files
fix: cache per arch, as these overwrite each other
1 parent e0677f8 commit 90bb69a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ jobs:
572572
context: .
573573
# this container is THE PR's artifact, and we will re-tag it
574574
# once the PR has been accepted
575-
cache-from: type=registry,ref=${{ steps.variables.outputs.full_image_name }}:buildcache-${{ steps.variables.outputs.application_name }}
576-
cache-to: type=registry,ref=${{ steps.variables.outputs.full_image_name }}:buildcache-${{ steps.variables.outputs.application_name }},mode=max
575+
cache-from: type=registry,ref=${{ steps.variables.outputs.full_image_name }}:buildcache-${{ runner.os }}-${{ runner.arch }}-${{ steps.variables.outputs.application_name }}
576+
cache-to: type=registry,ref=${{ steps.variables.outputs.full_image_name }}:buildcache-${{ runner.os }}-${{ runner.arch }}-${{ steps.variables.outputs.application_name }},mode=max
577577
labels: ${{ steps.meta.outputs.labels }}
578578
outputs: type=oci,dest=/tmp/${{ steps.variables.outputs.unique_tag }}.tar
579579
platforms: linux/amd64, linux/arm64

0 commit comments

Comments
 (0)