build: use is_not_default_branch
This commit is contained in:
@@ -38,9 +38,11 @@ jobs:
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/${{ env.NAMESPACE }}/${{ matrix.service }}
|
||||
tags: |
|
||||
type=ref,event=branch,enable={{!is_default_branch}}
|
||||
type=ref,event=branch,enable={{is_not_default_branch}}
|
||||
# type=ref,event=pr
|
||||
type=ref,event=tag
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
# type=sha,prefix={{branch}}-,suffix=-{{date 'YYYYMMDD-HHmmss'}},enable={{is_default_branch}}
|
||||
labels: |
|
||||
org.opencontainers.image.source=https://${{ env.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/${{ env.NAMESPACE }}
|
||||
|
||||
|
Reference in New Issue
Block a user