update docker workflow to clearly handle beta / rc tags

This commit is contained in:
henrygd
2025-07-08 15:28:23 -04:00
parent 3dc7e02ed0
commit be1366b785

View File

@@ -66,8 +66,11 @@ jobs:
images: ${{ matrix.image }} images: ${{ matrix.image }}
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}},enable=${{ !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }}
type=semver,pattern={{major}} type=semver,pattern={{major}},enable=${{ !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }}
type=raw,value=latest,enable=${{ !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }}
type=raw,value=beta,enable=${{ contains(github.ref, '-beta') }}
type=raw,value=rc,enable=${{ contains(github.ref, '-rc') }}
type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }} type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }}
# https://github.com/docker/login-action # https://github.com/docker/login-action