Skip to content

generate the matrix

generate the matrix #7

Workflow file for this run

---
on: push
jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
dist: ${{ steps.read-matrix.outputs.dist }}
steps:
- name: read matrix.json
id: read-matrix
run: echo "dist=$(cat matrix.json)" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
needs: [prepare-matrix]
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ github.token }}"
- uses: docker/bake-action@v3
env:
UPSTREAM_TAG: "0.0.0-${{ matrix.dist.OS }}.${{ matrix.dist.OS_VER }}"
TARGET_SLUG: "${{ github.repository }}"
TARGET_TAG: "0.0.0-${{ matrix.dist.OS }}.${{ matrix.dist.OS_VER }}"
SHA: "${{ github.sha }}"
with:
pull: true
push: true
files: docker-bake.hcl
strategy:
fail-fast: false
matrix:
dist: ${{ fromJSON(needs.prepare-matrix.outputs.dist }}

Check failure on line 37 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 37, Col: 15): Unexpected end of expression: 'dist'. Located at position 39 within expression: fromJSON(needs.prepare-matrix.outputs.dist .github/workflows/build.yml (Line: 37, Col: 15): Unexpected value '${{ fromJSON(needs.prepare-matrix.outputs.dist }}'