ci: Only prefix non-default branches
AKA, tag image:main as the latest commit
This commit is contained in:
parent
fb793e8315
commit
71d2421f55
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ jobs:
|
|||
type=semver,pattern=v{{version}}
|
||||
type=semver,pattern=v{{major}}.{{minor}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.0.') }}
|
||||
type=semver,pattern=v{{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
|
||||
type=ref,event=branch,prefix=branch-
|
||||
type=ref,event=branch,prefix=${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref && '' || 'branch-' }}
|
||||
type=ref,event=pr
|
||||
type=sha,format=long
|
||||
images: ${{needs.define-variables.outputs.images}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue