@@ -103,6 +103,9 @@ jobs:
103
103
registry : ghcr.io
104
104
username : ${{ github.actor }}
105
105
password : ${{ secrets.GITHUB_TOKEN }}
106
+ - name : Setup docker cache dir
107
+ run : |
108
+ mkdir -p /tmp/containers-cache
106
109
- name : Extract metadata (tags, labels) for Docker
107
110
id : meta
108
111
uses : docker/metadata-action@v5
@@ -118,6 +121,8 @@ jobs:
118
121
push : true
119
122
tags : ${{ steps.meta.outputs.tags }}
120
123
labels : ${{ steps.meta.outputs.labels }}
124
+ cache-from : type=local,src=/tmp/containers-cache
125
+ cache-to : type=local,dest=/tmp/containers-cache,mode=max
121
126
- name : nydusify
122
127
run : |
123
128
nydusify convert --oci --oci-ref --source ${{ steps.meta.outputs.tags }} --target ${{ steps.meta.outputs.tags }}-nydus --prefetch-dir /opt/cdxgen
@@ -168,6 +173,9 @@ jobs:
168
173
registry : ghcr.io
169
174
username : ${{ github.actor }}
170
175
password : ${{ secrets.GITHUB_TOKEN }}
176
+ - name : Setup docker cache dir
177
+ run : |
178
+ mkdir -p /tmp/containers-cache
171
179
- name : Extract metadata (tags, labels) for Docker
172
180
id : meta
173
181
uses : docker/metadata-action@v5
@@ -183,6 +191,8 @@ jobs:
183
191
push : true
184
192
tags : ${{ steps.meta.outputs.tags }}
185
193
labels : ${{ steps.meta.outputs.labels }}
194
+ cache-from : type=local,src=/tmp/containers-cache
195
+ cache-to : type=local,dest=/tmp/containers-cache,mode=max
186
196
- name : save private key to file
187
197
run : |
188
198
echo "$SBOM_SIGN_PRIVATE_KEY_DATA" | base64 -d > $GITHUB_WORKSPACE/private.key
0 commit comments