CI: add Docker BuildX caching

This commit is contained in:
liushuyu 2023-09-06 21:08:12 -06:00
parent c9510708ba
commit 518dcf743d
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -46,8 +46,11 @@ jobs:
uses: docker/build-push-action@v4
with:
platforms: ${{ matrix.platform }}
pull: true
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/citra-multiplayer-dedicated') }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Export digest
run: |
mkdir -p /tmp/digests