chore: configurable latest push
This commit is contained in:
parent
fbc3f3ad42
commit
3bb691d0b8
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build-and-release.yml
vendored
4
.github/workflows/build-and-release.yml
vendored
|
|
@ -74,7 +74,7 @@ jobs:
|
|||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_NAME }}:${{ needs.extract-version.outputs.version }}
|
||||
${{ github.event.inputs.push_latest == 'true' && format('{0}:latest', env.IMAGE_NAME) || '' }}
|
||||
${{ (github.event.inputs.push_latest == 'true' || (github.event_name == 'release' && !github.event.release.prerelease)) && format('{0}:latest', env.IMAGE_NAME) || '' }}
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ jobs:
|
|||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_NAME }}:${{ needs.extract-version.outputs.version }}-single
|
||||
${{ github.event.inputs.push_latest == 'true' && format('{0}:latest-single', env.IMAGE_NAME) || '' }}
|
||||
${{ (github.event.inputs.push_latest == 'true' || (github.event_name == 'release' && !github.event.release.prerelease)) && format('{0}:latest-single', env.IMAGE_NAME) || '' }}
|
||||
cache-from: type=local,src=/tmp/.buildx-cache-single
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-single-new,mode=max
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue