====== pipeline inputs ======
**Note:** ''spec'' keywords must be defined in "header" - before YAML's ''end of directives'' marker ''---''.
spec:
inputs:
nproc:
default: $(nproc)
description: "Value passed as -j to make"
---
build:
stage: build
script:
- m -j$[[ inputs.nproc ]]
# my-template.yml
spec:
inputs:
website:
environment:
default: staging
stage:
default: test
job_prefix:
default: ""
---
"$[[ inputs.job_prefix]]deploy":
stage: $[[ inputs.stage ]]
script: echo "deploy $[[ inputs.website ]] to $[[inputs.environment]]"