Merge pull request #8675 from Rory-Z/chore/update-latest

ci: cancel latest tag for docker image
This commit is contained in:
zhouzb 2022-08-10 09:59:12 +08:00 committed by GitHub
commit fe453c1dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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