Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,26 @@ concurrency:
cancel-in-progress: true

jobs:
extract-targets:
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.get-targets.outputs.targets }}
steps:
- uses: actions/checkout@v4
- name: Extract targets as JSON array
uses: dcarbone/install-jq-action@v2
- name: Get targets from bake file
id: get-targets
run: |
TARGETS=$(docker buildx bake --file docker-bake.hcl --print | jq -c '[.target | keys[] | select(. != "default")]')
echo "targets=$TARGETS" >> "$GITHUB_OUTPUT"

build:
needs: extract-targets
runs-on: ubuntu-latest
strategy:
matrix:
target: [ "all", "20", "20-alpine", "19", "19-alpine", "18", "18-alpine", "17", "17-alpine", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"]
runs-on: ubuntu-latest
target: ${{ fromJson(needs.extract-targets.outputs.targets) }}
steps:
- uses: actions/checkout@v4

Expand Down
Loading