Narrow scope of Docker build cache in Github workflows (#39014)
This commit is contained in:
parent
7c05f56fe8
commit
cb5c5432b3
4
.github/workflows/build-container-image.yml
vendored
4
.github/workflows/build-container-image.yml
vendored
@ -87,8 +87,8 @@ jobs:
|
|||||||
platforms: ${{ matrix.platform }}
|
platforms: ${{ matrix.platform }}
|
||||||
provenance: false
|
provenance: false
|
||||||
push: ${{ inputs.push_to_images != '' }}
|
push: ${{ inputs.push_to_images != '' }}
|
||||||
cache-from: ${{ inputs.cache && 'type=gha' || '' }}
|
cache-from: ${{ inputs.cache && format('type=gha,scope=build-{0}-{1}', hashFiles(inputs.file_to_build), env.PLATFORM_PAIR) || '' }}
|
||||||
cache-to: ${{ inputs.cache && 'type=gha,mode=max' || '' }}
|
cache-to: ${{ inputs.cache && format('type=gha,mode=max,scope=build-{0}-{1}', hashFiles(inputs.file_to_build), env.PLATFORM_PAIR) || '' }}
|
||||||
outputs: type=image,"name=${{ env.IMAGE_NAMES }}",push-by-digest=true,name-canonical=true,push=${{ inputs.push_to_images != '' }}
|
outputs: type=image,"name=${{ env.IMAGE_NAMES }}",push-by-digest=true,name-canonical=true,push=${{ inputs.push_to_images != '' }}
|
||||||
|
|
||||||
- name: Export digest
|
- name: Export digest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user