mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-07-05 02:59:53 +02:00
🚧 github: TUse dynamic build matrix
This commit is contained in:
parent
958db4d0e9
commit
31fe37c36c
2 changed files with 11 additions and 8 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
|||
- 'test/github-actions'
|
||||
|
||||
jobs:
|
||||
generate-matrix:
|
||||
matrix:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
core: ${{ steps.step1.outputs.core }}
|
||||
|
@ -23,13 +23,14 @@ jobs:
|
|||
name: Generate outputs
|
||||
id: step1
|
||||
run: |
|
||||
echo "core=$(./.github/list-subimages --core --csv)" >>$GITHUB_OUTPUT
|
||||
echo "rest=$(./.github/list-subimages --rest --csv)" >>$GITHUB_OUTPUT
|
||||
echo "core=$(./.github/list-subimages --core --json)" >>$GITHUB_OUTPUT
|
||||
echo "rest=$(./.github/list-subimages --rest --json)" >>$GITHUB_OUTPUT
|
||||
|
||||
build-core:
|
||||
needs: matrix
|
||||
strategy:
|
||||
matrix:
|
||||
subimage: ["core"]
|
||||
subimage: ${{ fromJson(needs.matrix.outputs.core) }}
|
||||
uses: ./.github/workflows/build-subimage.yml
|
||||
with:
|
||||
subimage: ${{ matrix.subimage }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue