Skip to content

Commit dab83a9

Browse files
committed
Fix: add branch tag for feature branch builds
1 parent 652294d commit dab83a9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
type=ref,event=pr,prefix=pr-
7070
# For main branch: use 'test' tag (local testing only, not pushed)
7171
type=raw,value=test,enable=${{ github.ref == 'refs/heads/main' }}
72+
# For feature branches: use branch name as tag (local testing only)
73+
type=ref,event=branch
7274
7375
- name: Build and push Docker image
7476
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)