File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,13 @@ jobs:
129
129
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
130
130
--header "Authorization: Bearer $token" \
131
131
"https://registry-1.docker.io/v2/${{ env.PLEX_CONTAINER }}/manifests/${{ env.PLEX_CONTAINER_TAG }}" \
132
- | jq -r '.config.digest' )
132
+ | sha256sum | head -c 64 )
133
133
echo "Digest: $digest"
134
134
echo "digest=$digest" >> $GITHUB_OUTPUT
135
135
136
- - name : Cache PMS Docker image
136
+ - name : Restore cached PMS Docker image
137
137
id : docker-cache
138
- uses : actions/cache@v4
138
+ uses : actions/cache/restore @v4
139
139
with :
140
140
path : ~/.cache/docker/plexinc
141
141
key : ${{ runner.os }}-docker-pms-${{ steps.docker-digest.outputs.digest }}
@@ -208,6 +208,12 @@ jobs:
208
208
name : coverage-${{ matrix.plex }}-${{ steps.python.outputs.python-version }}
209
209
path : .coverage
210
210
211
+ - name : Save PMS Docker image cache
212
+ if : always() && steps.docker-cache.outputs.cache-hit != 'true'
213
+ uses : actions/cache/save@v4
214
+ with :
215
+ key : ${{ steps.docker-cache.outputs.cache-primary-key }}
216
+ path : ~/.cache/docker/plexinc
211
217
212
218
coverage :
213
219
name : Process test coverage (${{ matrix.plex }})
You can’t perform that action at this time.
0 commit comments