Decreases 'edge' priority so OCI label 'version' is taken from ref first and sha second

This commit is contained in:
Matthieu Vachon 2025-02-24 20:10:35 -05:00
parent c93baac6cc
commit 72f9828339

View file

@ -47,11 +47,11 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: | tags: |
type=ref,event=tag,prefix= type=ref,event=tag,prefix=,priority=1000
type=sha,prefix= type=sha,prefix=
type=sha,prefix=,suffix=-${{ matrix.platform_suffix }} type=sha,prefix=,suffix=-${{ matrix.platform_suffix }}
type=edge,branch=firehose-fh3.0 type=edge,branch=firehose-fh3.0,priority=1
type=edge,branch=release/* type=edge,branch=release/*,priority=1
flavor: | flavor: |
latest=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') }} latest=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') }}
prefix=geth-,onlatest=true prefix=geth-,onlatest=true
@ -105,8 +105,8 @@ jobs:
tags: | tags: |
type=ref,event=tag,prefix= type=ref,event=tag,prefix=
type=sha,prefix= type=sha,prefix=
type=edge,branch=firehose-fh3.0 type=edge,branch=firehose-fh3.0,priority=1
type=edge,branch=release/* type=edge,branch=release/*,priority=1
flavor: | flavor: |
latest=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') }} latest=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') }}
prefix=geth-,onlatest=true prefix=geth-,onlatest=true