ci: cancel latest tag for docker image

only EMQX 5.0 image can update latest tag
This commit is contained in:
Rory Z 2022-08-10 09:54:19 +08:00
parent 56a0a19807
commit 6630fe6318
1 changed files with 2 additions and 2 deletions

View File

@ -365,9 +365,9 @@ jobs:
id: meta id: meta
with: with:
images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }} images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }}
## only stable tag is latest ## only 5.0 is latest
flavor: | flavor: |
latest=${{ contains(github.ref, 'tags') && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha') }} latest=false
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr