Skip to content

Commit

Permalink
allow each image to have its own cache (#5080)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Feb 13, 2024
1 parent 65d2285 commit 9e33e5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:
with:
file: build/Dockerfile
context: "."
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
target: common
tags: ${{ steps.meta.outputs.tags }}
platforms: ${{ matrix.platforms }}
Expand Down Expand Up @@ -159,8 +159,8 @@ jobs:
with:
file: build/Dockerfile
context: "."
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
target: common
tags: ${{ steps.meta.outputs.tags }}
platforms: ${{ matrix.platforms }}
Expand Down Expand Up @@ -246,8 +246,8 @@ jobs:
with:
file: build/Dockerfile
context: "."
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ matrix.image }}-${{ steps.nap_modules.outputs.modules }}
cache-to: type=gha,scope=${{ matrix.image }}-${{ steps.nap_modules.outputs.modules }},mode=max
target: common
tags: ${{ steps.meta.outputs.tags }}
platforms: ${{ matrix.platforms }}
Expand Down

0 comments on commit 9e33e5a

Please sign in to comment.