summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com>2024-05-19 08:40:37 +0530
committerBharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com>2024-05-19 08:40:37 +0530
commitf6ddc5cf4965e333f7344465ca9062fab4df3721 (patch)
treeece4911c312aeee0ee68521d36ec1e643bf7c81a /.github
parentc5ea3d292cb6206c1b4f367e9288fed72d9aa7aa (diff)
chg: build workflow - use scope to prevent multiple os caches from overwriting each other
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index efd08fbb..90dcfd1e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -160,4 +160,6 @@ jobs:
target: ${{ matrix.tag.target }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
- cache-to: type=gha,mode=max
+ # GHA default behaviour overwrites last build cache. Causes alpine and ubuntu cache to overwrite each other.
+ # Use `scope` with the os name to prevent that
+ cache-to: 'type=gha,mode=max,scope=${{ matrix.os }}'