Skip to content

Commit

Permalink
Docker tag latest if default branch or release
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Apr 8, 2024
1 parent df1fa43 commit b04fc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ matrix.image }}
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=raw,value=latest,enable=${{ github.event.repository.default_branch == github.ref_name || github.event_name == 'release'}}
type=sha,prefix=pr-${{ github.event.pull_request.number }}-,priority=601,enable=${{ github.event_name == 'pull_request' }}
type=sha,prefix={{branch}}-,priority=601,enable=${{ github.event_name != 'pull_request' && github.event_name != 'release' }}
type=ref,event=branch,priority=600
Expand Down

0 comments on commit b04fc53

Please sign in to comment.