Merge pull request #791 from PicPeak/fix/docker-v-tag-via-ref

fix(ci): publish v-prefixed image tags via type=ref,event=tag (#668)
This commit is contained in:
Paul Nothaft
2026-07-10 14:17:11 +02:00
committed by GitHub
+8 -6
View File
@@ -282,9 +282,10 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} type=semver,pattern={{major}}.{{minor}},enable=${{ steps.context.outputs.is_prerelease == 'false' }}
type=semver,pattern={{major}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} type=semver,pattern={{major}},enable=${{ steps.context.outputs.is_prerelease == 'false' }}
type=semver,pattern=v{{version}} # #668/#783: publish the git-tag name verbatim (v3.45.0 / v3.84.0-beta.0)
type=semver,pattern=v{{major}}.{{minor}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} # so users can pin the same string as the GitHub release. metadata-action's
type=semver,pattern=v{{major}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} # `pattern=v{{version}}` silently dropped it on prereleases, so use type=ref.
type=ref,event=tag
type=sha,format=short type=sha,format=short
# `:latest` + `:stable` follow the stable channel (the `stable` branch + # `:latest` + `:stable` follow the stable channel (the `stable` branch +
# stable release tags). The default branch is now `main` (active dev), # stable release tags). The default branch is now `main` (active dev),
@@ -502,9 +503,10 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} type=semver,pattern={{major}}.{{minor}},enable=${{ steps.context.outputs.is_prerelease == 'false' }}
type=semver,pattern={{major}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} type=semver,pattern={{major}},enable=${{ steps.context.outputs.is_prerelease == 'false' }}
type=semver,pattern=v{{version}} # #668/#783: publish the git-tag name verbatim (v3.45.0 / v3.84.0-beta.0)
type=semver,pattern=v{{major}}.{{minor}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} # so users can pin the same string as the GitHub release. metadata-action's
type=semver,pattern=v{{major}},enable=${{ steps.context.outputs.is_prerelease == 'false' }} # `pattern=v{{version}}` silently dropped it on prereleases, so use type=ref.
type=ref,event=tag
type=sha,format=short type=sha,format=short
# `:latest` + `:stable` follow the stable channel (the `stable` branch + # `:latest` + `:stable` follow the stable channel (the `stable` branch +
# stable release tags). The default branch is now `main` (active dev), # stable release tags). The default branch is now `main` (active dev),