Skip to content

Commit

Permalink
build: update image tag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 14, 2024
1 parent c344bad commit a04afae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ runs:
with:
images: ${{ inputs.registry }}/${{ inputs.image }}
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') && inputs.latest == 'true' }}
type=raw,value=${{ inputs.suffix }},enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=ref,event=branch,suffix=-${{ inputs.suffix }}
type=ref,event=tag,suffix=-${{ inputs.suffix }}
type=ref,event=pr,suffix=-${{ inputs.suffix }}
type=raw,value=${{ inputs.suffix }}
type=raw,value=latest,enable=${{ github.ref_name == 'main' && inputs.latest == 'true' }}
type=ref,event=branch,suffix=-${{ inputs.suffix }},enable=${{ github.ref_name != 'main' }}
type=ref,event=tag,suffix=-${{ inputs.suffix }},enable=${{ github.ref_name != 'main' }}
type=ref,event=pr,suffix=-${{ inputs.suffix }},enable=${{ github.ref_name != 'main' }}
- uses: docker/build-push-action@v6
name: build-push
Expand Down

0 comments on commit a04afae

Please sign in to comment.