Skip to content

Commit 1e17b4b

Browse files
committed
CI: Modernize OCI caching on GHA
1 parent 3db034b commit 1e17b4b

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/release-oci.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ jobs:
103103
id: buildx
104104
uses: docker/setup-buildx-action@v3
105105

106-
- name: Cache OCI layers
107-
uses: actions/cache@v4
108-
with:
109-
path: /tmp/.buildx-cache
110-
key: ${{ runner.os }}-buildx-${{ github.sha }}
111-
restore-keys: |
112-
${{ runner.os }}-buildx-
113-
114106
- name: Inspect builder
115107
run: |
116108
echo "Name: ${{ steps.buildx.outputs.name }}"
@@ -135,13 +127,10 @@ jobs:
135127
tags: ${{ steps.meta.outputs.tags }}
136128
labels: ${{ steps.meta.outputs.labels }}
137129
push: true
138-
cache-from: type=local,src=/tmp/.buildx-cache
139-
cache-to: type=local,dest=/tmp/.buildx-cache-new
140-
141-
- name: Move cache
142-
run: |
143-
rm -rf /tmp/.buildx-cache
144-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
130+
cache-from: type=gha
131+
cache-to: type=gha,mode=max
132+
sbom: true
133+
provenance: mode=max
145134

146135
- name: Display git status
147136
run: |

0 commit comments

Comments
 (0)