Fix cache options. (#1049)
This commit is contained in:
parent
e8914e0890
commit
49ae7d17df
|
@ -11,6 +11,7 @@ on:
|
|||
|
||||
env:
|
||||
IS_PUSHING_IMAGES: ${{ github.event_name != 'pull_request' && github.repository == 'photoview/photoview' }}
|
||||
IS_CACHING: ${{ github.event_name == 'pull_request' }}
|
||||
DOCKER_USERNAME: viktorstrate
|
||||
DOCKER_IMAGE: viktorstrate/dependencies
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
@ -59,8 +60,9 @@ jobs:
|
|||
push: ${{ env.IS_PUSHING_IMAGES }}
|
||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||
cache-from: ${{ ( github.event_name == 'pull_request' && 'type=gha' ) || 'type=local' }}
|
||||
cache-to: ${{ ( github.event_name == 'pull_request' && 'type=gha,mode=max' ) || 'type=local' }}
|
||||
cache-from: ${{ env.IS_CACHING == 'true' && 'type=gha' }}
|
||||
cache-to: ${{ env.IS_CACHING == 'true' && 'type=gha,mode=max' }}
|
||||
no-cache: ${{ ! env.IS_CACHING }}
|
||||
sbom: true
|
||||
provenance: mode=max
|
||||
annotations: ${{ steps.docker_meta.outputs.annotations }}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# Workers
|
||||
# Dependencies
|
||||
This is used to build and store 3rd-party dependencies for Photoview products
|
||||
|
|
Loading…
Reference in New Issue