diff options
author | 2021-12-26 23:07:49 -0800 | |
---|---|---|
committer | 2021-12-26 23:07:49 -0800 | |
commit | c63f763c6a210087dfdffb21d0f509e9084faf3b (patch) | |
tree | ad1b86780a7648b475cb14ac4aa84c91b5def109 | |
parent | CI: combine coverage data from all matrix jobs (diff) |
CI: remove SHA from image build GHA cache scope
Unlike the cache action, the build-push action's GHA cache feature
seems to only do an exact comparison for the scope. Thus, new commits
lead to cache misses.
-rw-r--r-- | .github/workflows/build.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e0bbdbe..8d588d6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -57,7 +57,7 @@ jobs: run: | set -euo pipefail if [ "$GITHUB_EVENT_NAME" = 'pull_request' ]; then - cache_from="type=gha,scope=buildkit-${GITHUB_REF}-${GITHUB_SHA}" + cache_from="type=gha,scope=buildkit-${GITHUB_REF}" cache_to="${cache_from},mode=max" fi echo "::set-output name=cache_from::${cache_from:-}" |