Skip to content

Refactor using a matrix #975

Refactor using a matrix

Refactor using a matrix #975

Workflow file for this run

---
name: CI
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
paths-ignore:
- '**.md'
schedule:
- cron: 0 0 * * *
jobs:
matrix:
runs-on: ubuntu-latest
outputs:
data: ${{ steps.matrix.outputs.data }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Setup matrix variables
id: matrix
run: |
echo "data=$(bin/github)" >> $GITHUB_OUTPUT
images:
needs: matrix
strategy:
fail-fast: false
matrix:
version: ${{ fromJson(needs.matrix.outputs.data)['version'] }}
context: ${{ fromJson(needs.matrix.outputs.data)['context'] }}
exclude: ${{ fromJson(needs.matrix.outputs.data)['exclude'] }}
uses: ./.github/workflows/build.yml
with:
version: ${{ matrix.version }}
context: ${{ matrix.context }}
secrets: inherit