Skip to content

Commit

Permalink
ci: add scope to GitHub Actions Docker build cache (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaegers committed Jun 13, 2024
1 parent 54eddea commit a0bc7a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
annotations: ${{ steps.metadata.outputs.annotations }}
sbom: true
provenance: true
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ github.repository }}-${{ matrix.flavor }}
cache-to: type=gha,mode=max,scope=${{ github.repository }}-${{ matrix.flavor }}
- uses: ./.github/actions/container-size-diff
id: container-size-diff
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
file: .devcontainer/${{ matrix.flavor }}/Dockerfile
load: true
tags: ${{ github.repository }}-${{ matrix.flavor }}:test
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ github.repository }}-${{ matrix.flavor }}
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
if: matrix.flavor == 'cpp'
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prime-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
with:
file: .devcontainer/${{ matrix.flavor }}/Dockerfile
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ github.repository }}-${{ matrix.flavor }}
cache-to: type=gha,mode=max,scope=${{ github.repository }}-${{ matrix.flavor }}
prime-xwin-cache:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit a0bc7a6

Please sign in to comment.