Skip to content

Commit dabaaf7

Browse files
committed
Changed GH action to publish images from the preview branch too
1 parent b2a5462 commit dabaaf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Create and publish a Docker image
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ["main", "preview"]
66

77
env:
88
REGISTRY: ghcr.io
@@ -31,9 +31,9 @@ jobs:
3131
uses: docker/metadata-action@v5
3232
with:
3333
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34-
flavor: |
35-
latest=true
3634
tags: |
35+
# set latest tag for main branch only
36+
type=raw,value=latest,enable={{is_default_branch}}
3737
type=ref,event=branch
3838
type=sha
3939

0 commit comments

Comments
 (0)