chore: configurable latest push

This commit is contained in:
LUIS NOVO 2025-07-17 11:11:47 -03:00
parent fbc3f3ad42
commit 3bb691d0b8

View file

@ -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