ci: split validate workflow

This commit is contained in:
CrazyMax 2023-05-06 15:10:51 +02:00
parent bdfed9f06a
commit 305a38ec00
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 21 additions and 8 deletions

View File

@ -8,9 +8,6 @@ on:
- 'dev' - 'dev'
- 'releases/v*' - 'releases/v*'
pull_request: pull_request:
branches:
- 'dev'
- 'releases/v*'
jobs: jobs:
ci: ci:
@ -92,7 +89,6 @@ jobs:
pages_threshold: major_outage pages_threshold: major_outage
- -
name: Deploy name: Deploy
if: success()
uses: ./ uses: ./
with: with:
target_branch: ${{ matrix.target_branch }} target_branch: ${{ matrix.target_branch }}

View File

@ -8,15 +8,32 @@ on:
paths-ignore: paths-ignore:
- '**.md' - '**.md'
pull_request: pull_request:
branches:
- 'dev'
- 'releases/v*'
paths-ignore: paths-ignore:
- '**.md' - '**.md'
jobs: jobs:
prepare:
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.targets.outputs.matrix }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Targets matrix
id: targets
run: |
echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
validate: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs:
- prepare
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }}
steps: steps:
- -
name: Checkout name: Checkout
@ -25,4 +42,4 @@ jobs:
name: Validate name: Validate
uses: docker/bake-action@v3 uses: docker/bake-action@v3
with: with:
targets: validate targets: ${{ matrix.target }}