fix: only add tag latest on git version tag

This commit is contained in:
Alexander Nicholson 4584443+DragonStuff@users.noreply.github.com
2025-09-10 03:55:02 +09:00
parent d7c67273ca
commit fc24ab44fc

View File

@@ -79,7 +79,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern={{major}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
flavor: |
latest=auto
latest=false
suffix=-${{ matrix.arch }}
labels: |
org.opencontainers.image.source=${{ env.SOURCE_URL }}
@@ -151,8 +151,9 @@ jobs:
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern={{major}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
flavor: |
latest=auto
latest=false
labels: |
org.opencontainers.image.source=${{ env.SOURCE_URL }}