fix: latest docker tag

This commit is contained in:
tbphp
2025-07-13 09:12:13 +08:00
parent af1de0b621
commit 373aecea20

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