ci: split validate workflow
This commit is contained in:
parent
bdfed9f06a
commit
305a38ec00
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -8,9 +8,6 @@ on:
|
|||
- 'dev'
|
||||
- 'releases/v*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'dev'
|
||||
- 'releases/v*'
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
|
@ -92,7 +89,6 @@ jobs:
|
|||
pages_threshold: major_outage
|
||||
-
|
||||
name: Deploy
|
||||
if: success()
|
||||
uses: ./
|
||||
with:
|
||||
target_branch: ${{ matrix.target_branch }}
|
||||
|
|
25
.github/workflows/validate.yml
vendored
25
.github/workflows/validate.yml
vendored
|
@ -8,15 +8,32 @@ on:
|
|||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'dev'
|
||||
- 'releases/v*'
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- prepare
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target: ${{ fromJson(needs.prepare.outputs.targets) }}
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
|
@ -25,4 +42,4 @@ jobs:
|
|||
name: Validate
|
||||
uses: docker/bake-action@v3
|
||||
with:
|
||||
targets: validate
|
||||
targets: ${{ matrix.target }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user