build: use match instead of pep440 for stable tag selection (#2250)

This commit is contained in:
Geoff Bourne
2023-06-23 13:19:25 -05:00
committed by GitHub
parent b89844d5b2
commit ae46cd3ad2
2 changed files with 3 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ jobs:
# and each variant (including main one) gets the tag with the variant suffix, such as 2023.1.1-java17
type=ref,event=tag,suffix=-${{ matrix.variant }}
# latest repo tag gets a moving 'stable' image tag applied to the main variant
type=pep440,value=stable,enable=${{ matrix.variant == env.MAIN_VARIANT }},pattern={{version}}
type=match,value=stable,enable=${{ matrix.variant == env.MAIN_VARIANT }},pattern=\d+\.\d+\.\d+
# for building test/* branch images
type=ref,event=branch,suffix=-${{ matrix.variant }},enable=${{ github.ref_name != 'master' }}
#