Skip to content

Commit

Permalink
Scope cache
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroCC committed Oct 2, 2024
1 parent 4c3e8a5 commit b3fc475
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:
arch: linux/amd64
- os: ubuntu-latest # change this to the native arm runner when Github makes it public
arch: linux/arm64
steps:
steps:
- name: Prepare
run: |
platform=${{ matrix.arch }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -30,7 +35,7 @@ jobs:
file: docker/Dockerfile
target: base
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=${{ env.PLATFORM_PAIR }}

build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b3fc475

Please sign in to comment.