Skip to content

Commit c76116f

Browse files
committed
Always cache PMS Docker image
1 parent 7eca548 commit c76116f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ jobs:
133133
echo "Digest: $digest"
134134
echo "digest=$digest" >> $GITHUB_OUTPUT
135135
136-
- name: Cache PMS Docker image
136+
- name: Restore cached PMS Docker image
137137
id: docker-cache
138-
uses: actions/cache@v4
138+
uses: actions/cache/restore@v4
139139
with:
140140
path: ~/.cache/docker/plexinc
141141
key: ${{ runner.os }}-docker-pms-${{ steps.docker-digest.outputs.digest }}
@@ -208,6 +208,12 @@ jobs:
208208
name: coverage-${{ matrix.plex }}-${{ steps.python.outputs.python-version }}
209209
path: .coverage
210210

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
211217

212218
coverage:
213219
name: Process test coverage (${{ matrix.plex }})

0 commit comments

Comments
 (0)