Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ jobs:
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
--header "Authorization: Bearer $token" \
"https://registry-1.docker.io/v2/${{ env.PLEX_CONTAINER }}/manifests/${{ env.PLEX_CONTAINER_TAG }}" \
| jq -r '.config.digest')
| sha256sum | head -c 64)
echo "Digest: $digest"
echo "digest=$digest" >> $GITHUB_OUTPUT

- name: Cache PMS Docker image
- name: Restore cached PMS Docker image
id: docker-cache
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: ~/.cache/docker/plexinc
key: ${{ runner.os }}-docker-pms-${{ steps.docker-digest.outputs.digest }}
Expand Down Expand Up @@ -208,6 +208,12 @@ jobs:
name: coverage-${{ matrix.plex }}-${{ steps.python.outputs.python-version }}
path: .coverage

- name: Save PMS Docker image cache
if: always() && steps.docker-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ${{ steps.docker-cache.outputs.cache-primary-key }}
path: ~/.cache/docker/plexinc

coverage:
name: Process test coverage (${{ matrix.plex }})
Expand Down
Loading