Merge pull request #7502 from emqx/copy-of-main-v4.3

Merge main-v4.3 to main-v4.4
This commit is contained in:
Xinyu Liu 2022-04-02 11:56:44 +08:00 committed by GitHub
commit d676f8488e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -322,8 +322,9 @@ jobs:
id: meta
with:
images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }}
## only stable tag is latest
flavor: |
latest=${{ !github.event.release.prerelease }}
latest=${{ contains(github.ref, 'tags') && !contains(github.ref_name, 'rc') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha') }}
tags: |
type=ref,event=branch
type=ref,event=pr
@ -333,7 +334,8 @@ jobs:
- uses: docker/build-push-action@v2
if: matrix.profile != 'emqx-ee'
with:
push: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
## only push when stable tag and rc tag
push: ${{ contains(github.ref, 'tags') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha') }}
pull: true
no-cache: true
platforms: linux/amd64,linux/arm64
@ -348,7 +350,8 @@ jobs:
- uses: docker/build-push-action@v2
if: matrix.profile == 'emqx-ee'
with:
push: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
## only push when stable tag and rc tag
push: ${{ contains(github.ref, 'tags') && !contains(github.ref_name, 'beta') && !contains(github.ref_name, 'alpha') }}
pull: true
no-cache: true
platforms: linux/amd64,linux/arm64