Skip to content

Commit

Permalink
matrix in calling workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lehmanju committed May 9, 2024
1 parent 3cf81ef commit 60c54fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ jobs:
packages: write
needs: ["get-changed-images"]
if: ${{ needs.get-changed-images.outputs.addedOrModified == 'true' }}
strategy:
fail-fast: false
matrix:
image: ${{ fromJSON(needs.get-changed-images.outputs.addedOrModifiedImages) }}
uses: lehmanju/containers/.github/workflows/build-images.yaml@main
secrets: inherit
with:
appsToBuild: "${{ needs.get-changed-images.outputs.addedOrModifiedImages }}"
pushImages: true
image: "${{ matrix.image }}"
push: true
8 changes: 6 additions & 2 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ jobs:
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
image: ${{ fromJSON(needs.prepare.outputs.apps) }}
uses: lehmanju/containers/.github/workflows/build-images.yaml@main
needs: ["prepare"]
secrets: inherit
with:
appsToBuild: "${{ needs.prepare.outputs.apps }}"
pushImages: true
image: "${{ matrix.image }}"
push: true

cleanup:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 60c54fd

Please sign in to comment.