ci: use exclude instead of include for build matrix

This commit is contained in:
zhanghongtong 2022-02-13 12:51:53 +08:00
parent fd9b787e9d
commit e9238c6ca3
1 changed files with 9 additions and 6 deletions

View File

@ -351,15 +351,18 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
profile: ${{fromJSON(needs.prepare.outputs.profiles)}} profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
registry:
- 'docker.io'
otp: otp:
- 24.1.5-3 - 24.1.5-3
include: registry:
- profile: emqx - 'docker.io'
- 'public.ecr.aws'
exclude:
# we don't have an aws ecr repo for enterprise and edge yet
- profile: emqx-edge
registry: 'public.ecr.aws' registry: 'public.ecr.aws'
otp: 24.1.5-3 - profile: emqx-ee
registry: 'public.ecr.aws'
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with: