Matrix templates
kind: ConfigTemplate
name: dist
inputs:
os:
type: string
arch:
type: string
configs:
- kind: Build
type: exec
# Note: ${parent.name} resolves to the name of the RenderTemplate config below
name: ${parent.name}-${inputs.os}-${inputs.arch}
spec:
command: ["./build.sh", "${inputs.os}", "${inputs.arch}"]
---
kind: RenderTemplate
name: dist
template: dist
matrix:
os: ["linux", "macos"]
arch: ["amd64", "arm64"]
Last updated
Was this helpful?

