Skip to content

Commit 9d61af8

Browse files
committed
[fix]Tag Rule
1 parent ab36762 commit 9d61af8

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,8 @@ jobs:
4646
with:
4747
images: ghcr.io/${{ github.repository }}-${{ matrix.name }}
4848
tags: |
49-
# For tags like v1.0, create tag '1.0'
50-
type=semver,pattern={{version}}
51-
# For tags like v1.0, create tag '1'
52-
type=semver,pattern={{major}}
53-
# For main branch, create tag 'latest'
54-
type=raw,value=latest,enable={{is_default_branch}}
55-
# For PRs, create tag 'pr-123'
56-
type=ref,event=pr
49+
# For branch pushes, create tag with branch name (e.g., 'agentbeats-green_agent')
50+
type=ref,event=branch
5751
5852
- name: Build and push Docker image (${{ matrix.name }})
5953
id: build

0 commit comments

Comments
 (0)