ci: use list-targets subaction

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-10-30 08:47:30 +01:00
parent 991feac6c3
commit f06ec3b4a1
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -17,16 +17,17 @@ jobs:
prepare: prepare:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
outputs: outputs:
targets: ${{ steps.targets.outputs.matrix }} targets: ${{ steps.generate.outputs.targets }}
steps: steps:
- -
name: Checkout name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- -
name: Matrix name: List targets
id: targets id: generate
run: | uses: docker/bake-action/subaction/list-targets@v5
echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT with:
target: validate
validate: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest