(ci/cd) use -latest tag if none provided

This commit is contained in:
ishaan-jaff 2023-12-26 11:11:15 +05:30
parent 623716fa89
commit a55e7fbc44

View file

@ -46,5 +46,5 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}-${{ github.event.inputs.tag || github.event.release.tag_name }} # if a tag is provided, use that, otherwise use the release tag
tags: ${{ steps.meta.outputs.tags }}-${{ github.event.inputs.tag || github.event.release.tag_name || 'latest' }} # if a tag is provided, use that, otherwise use the release tag, and if neither is available, use 'latest'
labels: ${{ steps.meta.outputs.labels }}