Skip to content

Commit

Permalink
add app matrix to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Dec 9, 2024
1 parent b615096 commit 08de544
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,29 @@ defaults:
run:
shell: bash

env:
- RUNS_ON: ubuntu-24.04

jobs:
init:
runs-on: ${{ env.RUNS_ON }}
outputs:
apps: ${{ steps.apps.outputs.apps }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: set app matrix
id: apps
run: |
set -euxo pipefail
apps=$(find . -name Dockerfile | xargs dirname | cut -d'/' -f2 | sort | jq -ncR '[inputs]')
echo "apps=$apps" >> "$GITHUB_OUTPUT"
build:
runs-on: ubuntu-24.04
runs-on: ${{ env.RUNS_ON }}
needs: init
strategy:
matrix:
apps: ${{ fromJSON(needs.init.outputs.apps) }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

0 comments on commit 08de544

Please sign in to comment.