# Pipelines

> What a branchd pipeline is, what is available today, and where each task and key is documented.

Every page is also plain markdown at its url with `.md` appended. This section at once: https://docs.branchd.run/branchd/pipelines/llms-full.txt. The whole site: https://docs.branchd.run/llms.txt

- [Pipelines](https://docs.branchd.run/branchd/pipelines.md): What a branchd pipeline is, what is available today, and where each task and key is documented.
- [Writing pipelines with an AI agent](https://docs.branchd.run/branchd/pipelines/ai-agents.md): What to give an AI agent so it writes correct pipeline files, and the loop it should follow.
- [Bring your own runner](https://docs.branchd.run/branchd/pipelines/bring-your-own-runner.md): Run a personal namespace's pipelines, or any group's, on a runner pool you register yourself.
- [Build and push an image](https://docs.branchd.run/branchd/pipelines/build-and-push-an-image.md): Build the repository's Dockerfile, push the image to the branchd registry, and run a job in the image you built.
- [Caches and artifacts](https://docs.branchd.run/branchd/pipelines/caches-and-artifacts.md): Keep dependency caches between runs, and hand built files from one job to the jobs that need it.
- [Reuse a step (composite steps)](https://docs.branchd.run/branchd/pipelines/composite-steps.md): Keep a list of steps with inputs in a file of its own, and use it from any job of the repository.
- [Concepts](https://docs.branchd.run/branchd/pipelines/concepts.md): The few ideas a pipeline file is built from, and what branchd decides before a run starts.
- [Deploy](https://docs.branchd.run/branchd/pipelines/deploy.md): Build on every push and deploy to stage from the stage branch and to production from main, one deploy per environment at a time.
- [Environments and manual approval](https://docs.branchd.run/branchd/pipelines/environments-and-approval.md): Record deployments to named environments, and hold a job until a person releases it.
- [Refusals](https://docs.branchd.run/branchd/pipelines/errors.md): The refusals you are most likely to meet when a pipeline file is compiled, and what to do about each.
- [Expressions and variables](https://docs.branchd.run/branchd/pipelines/expressions.md): The ${{ }} expression language, its contexts and functions, and the environment variables every job gets.
- [Coming from GitLab CI](https://docs.branchd.run/branchd/pipelines/from-gitlab-ci.md): How each GitLab CI construct is written in a branchd pipeline file, with a worked conversion.
- [Coming from .xeonr-ci.yaml](https://docs.branchd.run/branchd/pipelines/from-xeonr-ci.md): Move a repository from .xeonr-ci.yaml to a pipeline file that uses the service preset, with its own jobs beside it.
- [Isolate a step from the job](https://docs.branchd.run/branchd/pipelines/isolated-steps.md): Run a typed step among run: steps with isolated: true, and choose what it receives and hands back with workspace:.
- [The job token](https://docs.branchd.run/branchd/pipelines/job-token.md): Use $BRANCHD_TOKEN with git and curl, ask for more with permissions:, and what it can never do.
- [Limits](https://docs.branchd.run/branchd/pipelines/limits.md): The bounds on what one pipeline file can ask of the compiler and of a run.
- [Run a runner on a Mac](https://docs.branchd.run/branchd/pipelines/mac-runner.md): Install branchd's runner agent on your own Mac with one command, for jobs that need macOS, Xcode or a keychain.
- [A manual pipeline with inputs](https://docs.branchd.run/branchd/pipelines/manual-runs.md): Let a person start a pipeline by hand, with typed inputs that the jobs read.
- [Run a job for several versions (matrix)](https://docs.branchd.run/branchd/pipelines/matrix.md): Run one job once for each combination of values, such as Go versions and databases.
- [Steps and pipelines from another repository](https://docs.branchd.run/branchd/pipelines/other-repositories.md): Use a composite step or a reusable pipeline that another repository publishes, pinned to a version.
- [Pass outputs between steps and jobs](https://docs.branchd.run/branchd/pipelines/outputs.md): Write a value in one step and read it in a later step of the same job, or in a job that needs this one.
- [Run only when certain paths change](https://docs.branchd.run/branchd/pipelines/paths.md): Start a pipeline only when files you care about change, and run each job only for the part that changed.
- [Presets](https://docs.branchd.run/branchd/pipelines/presets.md): Get a whole set of standard jobs from a preset, configure it under with:, and add jobs of your own that wait for its jobs.
- [Quick start](https://docs.branchd.run/branchd/pipelines/quickstart.md): In five minutes, add a pipeline to a repository, check it locally, push it, and read its checks.
- [Pipeline file reference](https://docs.branchd.run/branchd/pipelines/reference.md): The complete reference for .branchd/pipelines/*.yaml on one page, with every key, what it takes, what is refused, the job token, superseding, other repositories and presets. Also served as Markdown at /branchd/pipelines/reference.md.
- [Call a pipeline (reusable pipelines)](https://docs.branchd.run/branchd/pipelines/reusable-pipelines.md): Write jobs once in a pipeline file with on: call, and use them as one job of another pipeline.
- [Run on a schedule](https://docs.branchd.run/branchd/pipelines/schedules.md): Run a pipeline on a timetable, on the default branch or another one.
- [Editor support and the schema](https://docs.branchd.run/branchd/pipelines/schema.md): Use the JSON Schema of pipeline files, step.yaml and packages.yaml in an editor, in a script or in an agent.
- [Secrets](https://docs.branchd.run/branchd/pipelines/secrets.md): Give a job the secrets it needs, as environment variables or files, and nothing else.
- [Security](https://docs.branchd.run/branchd/pipelines/security.md): What a pipeline, a step from another repository and a job token can do, stated plainly.
- [Several pipelines in one repository](https://docs.branchd.run/branchd/pipelines/several-pipelines.md): Split a repository's CI into several files, and know which checks each one reports and which to require.
- [Skip a push's pipelines](https://docs.branchd.run/branchd/pipelines/skip-a-run.md): Push a commit without starting its pipelines, with [skip ci] in the commit message or the ci.skip push option, and what skipping does not affect.
- [Step and package files](https://docs.branchd.run/branchd/pipelines/step-files.md): The keys of a step.yaml (composite and typed) and of .branchd/packages.yaml.
- [Browse steps and presets](https://docs.branchd.run/branchd/pipelines/steps-and-presets.md): Find a published step or preset, see what it does, takes and asks for, and get your own listed.
- [Test a Go service with a database](https://docs.branchd.run/branchd/pipelines/test-go-with-database.md): Run a Go service's tests against a MySQL database that runs beside the job.
- [Test a Node.js project](https://docs.branchd.run/branchd/pipelines/test-node.md): Install, lint, test and build a Node.js project with pnpm, keeping the package store between runs.
- [Run tests on a pull request](https://docs.branchd.run/branchd/pipelines/test-on-pull-request.md): Test every pull request and every push to main, and require the checks before a pull request merges.
- [Trigger another repository's pipeline](https://docs.branchd.run/branchd/pipelines/trigger-another-repository.md): Start a run of a pipeline in another repository, at its own ref and with its own secrets, and optionally wait for its result.
- [Troubleshooting](https://docs.branchd.run/branchd/pipelines/troubleshooting.md): Find out why a pipeline did not run, why a job was left out, or why a run failed.
- [Writing a preset](https://docs.branchd.run/branchd/pipelines/writing-a-preset.md): What a preset program receives, what it returns, and the limits it runs under.
- [Writing a step](https://docs.branchd.run/branchd/pipelines/writing-a-step.md): Publish a composite step or a typed step for other repositories to use.
