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
7 changes: 7 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ on:
description: Extra cache-from refs, one per line (e.g. the cache_last_published ref)
type: string
default: ""
cache-to-extra:
description: >-
Extra cache-to refs, one per line (e.g. a cache_last_published ref a
publish job refreshes). Only written when write-cache is true.
type: string
default: ""
write-cache:
description: Write the shared cache (disable for fork/PR read-only builds)
type: boolean
Expand Down Expand Up @@ -176,3 +182,4 @@ jobs:
cache-to: |
${{ inputs.write-cache && format('type=registry,ref={0}/{1}:{2},mode=max', env.TARGET, inputs.image, inputs.cache-tag) || '' }}
${{ (inputs.write-cache && inputs.pr-cache && github.event.number) && format('type=registry,ref={0}/{1}:cache-PR-{2}', env.TARGET, inputs.image, github.event.number) || '' }}
${{ inputs.write-cache && inputs.cache-to-extra || '' }}