Skip to content

Commit 373aece

Browse files
committed
fix: latest docker tag
1 parent af1de0b commit 373aece

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ jobs:
3030
uses: docker/metadata-action@v5
3131
with:
3232
images: ghcr.io/${{ github.repository }}
33+
flavor: |
34+
latest=false
3335
tags: |
3436
type=ref,event=tag
35-
type=raw,value=latest,enable={{ and is_default_branch (not (contains ref_name "-")) }}
37+
type=raw,value=latest,enable=${{ !contains(github.ref, '-') }}
3638
3739
- name: Build and push Docker image
3840
id: build

0 commit comments

Comments
 (0)