Skip to content

Commit

Permalink
Actions: update cache key to use proper git commit hash
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <avi@deitcher.net>
  • Loading branch information
deitch committed Jul 24, 2024
1 parent af68942 commit 8a8422e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.linuxkit/cache
key: linuxkit-${{ matrix.arch }}-${{ github.sha }}
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.ref }}
- name: Build packages
run: |
make V=1 PRUNE=1 ZARCH=${{ matrix.arch }} pkgs
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: ~/.linuxkit/cache
key: linuxkit-amd64-${{ github.sha }}
key: linuxkit-amd64-${{ github.event.pull_request.head.ref }}
fail-on-cache-miss: true
- name: load images we need from linuxkit cache into docker
run: |
Expand All @@ -146,7 +146,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: ~/.linuxkit/cache
key: linuxkit-${{ matrix.arch }}-${{ github.sha }}
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.ref }}
fail-on-cache-miss: true
- name: set environment
env:
Expand Down

0 comments on commit 8a8422e

Please sign in to comment.