.loha.yml schema
.loha.yml is your Pipeline-as-Code config. Commit it at the root of your repo. Loha parses it on every webhook and turns it into a Tekton PipelineRun.
Checked against the real parser
Field details below mirror the Zod schema in packages/pipeline-config. Every .loha.yml example across this site is validated in CI against that parser and against the official task registry, so an example that no longer works fails the build rather than shipping.
Top-level structure
version: '1' # required
name: my-pipeline # optional, max 128 chars
description: Build and test # optional, max 1000 chars
resource_class: small # optional default for all jobs
env: # optional global env
NODE_ENV: production
on: # required — when to run
push:
branches: [main]
jobs: # required — 1–20 named jobs
build:
steps:
- name: Build
run: make build
Top-level fields
| Field | Type | Required | Description |
|---|---|---|---|
version | "1" | yes | Schema version. Must be "1" or 1. |
name | string | no | Pipeline name. Max 128 chars. Alphanumeric, dash, underscore. |
description | string | no | Human-readable description. Max 1000 chars. |
resource_class | string | no | Default resource class for every job in the pipeline. Individual jobs may override it with their own resource_class. See Resource classes. |
env | map | no | Environment variables injected into every step. Keys max 64 chars, values max 4096 chars. |
on | object | yes | Declared events. See on — declared events. |
jobs | map | yes | Map of job name to job definition. 1–20 jobs. Job names max 64 chars. |
_source may appear in configs generated by the dashboard. It is an internal field. Don't set it by hand.