Use edge label for default branch, branch name for the other branches

This commit is contained in:
Arjan H
2023-04-17 20:50:30 +02:00
parent 6120dff7a4
commit a9eb2d5ae6

View File

@@ -84,8 +84,8 @@ jobs:
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=match,pattern=v(.*),group=1
type=edge,enable=${{is_default_branch}}
type=ref,event=branch,enable=${{!is_default_branch}}
type=edge,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
type=ref,event=pr
type=sha