fix: latest docker tag

This commit is contained in:
tbphp committed 2025-07-13 09:12:13 +08:00
1 parent af1de0b621
commit 373aecea20
1 file changed
+3 -1
+3 -1
View File
@@ -30,9 +30,11 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
type=ref,event=tag
type=raw,value=latest,enable={{ and is_default_branch (not (contains ref_name "-")) }}
type=raw,value=latest,enable=${{ !contains(github.ref, '-') }}
- name: Build and push Docker image
id: build