Pipeline reference
A pipeline is the YAML file .hod/pipeline.yaml at the root of a repository. This page lists every key the format has, with its type and default; the Writing pipelines pages explain them, with examples. The format is version 0. Editors can complete and check pipelines with the format's JSON Schema (Editor support).
Rules for every key
- Unknown keys are errors.
hod validatereports each with itsfile:line:col, and suggests the key you probably meant. - Keys planned but not built yet (listed in Not in v0 yet) fail with
not supported in v0 yet. - Expressions are CEL.
if:andvars:are expressions as written; every other string field takes a template,${{ … }}. They are type-checked when the pipeline compiles (Expressions and values). - No
${{ }}inrun:. Values reach scripts only throughenv:, as variables. - Quote a value that starts with
{,[or!, or that contains:(a CEL ternary, say). Single quotes keep CEL's double-quoted strings as they are:'${{ vars.ok ? "a" : "b" }}'. - Durations are written like
90s,30m,1h30mor2d.
Top level
on: is a list of event names or a map from names to filters: push takes branches and tags, pull_request takes branches (the base branch). Filters are globs on the name, where * doesn't cross /.
Jobs
A job with uses takes only uses, with, needs, if, matrix and secrets. A job with from takes only from, needs, if and matrix.
Inside a job's keys
Steps
Services
name: image is short for {image: …}. See Services.
Limits
Not in v0 yet
These keys fail with not supported in v0 yet:
- at the top level:
inputs,registries; - in
on::manual,api; - on a job:
environment,resources,checkout,post; - on a step:
reports,annotate,image.
Also not built yet: paths filters in on: (use changed() in if:), matrices built from a job's outputs, and services for a single step.