Skip to content

fix(ci): add job dependency #45

fix(ci): add job dependency

fix(ci): add job dependency #45

Workflow file for this run

name: Bake Image
on:
workflow_dispatch:
push:
branches:
- main
- ci
jobs:
info:
name: Build information
runs-on: ubuntu-latest
outputs:
version: ${{ steps.step1.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: extractions/setup-just@v1
- id: step1
run: echo "version=$(just generate_version)" >> "$GITHUB_OUTPUT"
bake-image:
name: Bake Image ${{ matrix.job.arch }} - ${{ matrix.job.profile }} - ${{ matrix.job.variant }}
runs-on: ubuntu-latest
needs: info
strategy:
fail-fast: false
matrix:
job:
- { arch: armhf, profile: armhf, variant: pi01 }
- { arch: arm64, profile: default, variant: pi023 }
- { arch: arm64, profile: default, variant: pi4 }
- { arch: arm64, profile: default, variant: pi45 }
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: extractions/setup-just@v1
- name: Build image
env:
VERSION: ${{needs.info.outputs.version}}
run: |
mkdir build
just IMAGE_ARCH=${{ matrix.job.arch }} PROFILE=${{ matrix.job.profile }} VARIANT=${{ matrix.job.variant }} build-all
- name: Upload Image
uses: actions/upload-artifact@v3
with:
name: tedge_rugpi_${{matrix.job.profile}}_${{matrix.job.variant}}_${{version}}

Check failure on line 52 in .github/workflows/bake-image.yml

View workflow run for this annotation

GitHub Actions / Bake Image

Invalid workflow file

The workflow is not valid. .github/workflows/bake-image.yml (Line: 52, Col: 17): Unrecognized named-value: 'version'. Located at position 1 within expression: version .github/workflows/bake-image.yml (Line: 53, Col: 17): Unrecognized named-value: 'version'. Located at position 1 within expression: version
path: build/tedge_rugpi_${{matrix.job.profile}}_${{matrix.job.variant}}_${{version}}*.xz