Skip to content

Commit 25e389c

Browse files
authored
Update docker-publish.yml
1 parent 2132ab0 commit 25e389c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Publish Docker Image (GHCR)
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ["main", "next"]
66
workflow_dispatch:
77

88
permissions:
@@ -41,7 +41,8 @@ jobs:
4141
with:
4242
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4343
tags: |
44-
type=raw,value=latest
44+
type=ref,event=branch
45+
type=raw,value=latest,enable={{is_default_branch}}
4546
type=sha,format=short
4647
4748
- name: Build and push

0 commit comments

Comments
 (0)