Merge pull request #189 from crazy-max/ci-split
ci: split validate workflow
This commit is contained in:
commit
274d188dab
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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 }}
|
||||||
|
|
25
.github/workflows/validate.yml
vendored
25
.github/workflows/validate.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user