liveBook · Manning

Trigger

As explained in Effective Platform Engineering

A pipeline trigger is an event or condition that causes an automation pipeline to start.

A pipeline trigger is an event or condition that starts automation. For most pipelines, a source-code change in the repository should be the primary trigger; scheduled builds can supplement this, while cross-repository pipeline chaining usually signals unhealthy coupling. section 6.3.7

Configure triggers to make pipeline behavior predictable:

  • Use repository changes as the default event, including tag creation where appropriate. section 6.3.7
  • Apply branch and tag filters when only particular changes should run a job. section 6.3.7
  • Reuse shared trigger conditions with YAML anchors instead of duplicating configuration. section 6.3.7

Run a job only for pushes to main

Define a reusable filter that permits the main branch and ignores tags, then attach it to the workflow job. This keeps the trigger explicit while allowing multiple jobs to share the same condition. section 6.3.7

How Effective Platform Engineering covers it

How deep it goes
Explains repository events, schedules, cross-repository risks, branch and tag filters, and reusable YAML conditions.
Examples
Uses repository changes, nightly builds, tag creation, and a CircleCI main-branch filter as concrete trigger examples.
What it assumes
Assumes familiarity with source repositories and introduces CircleCI distinctions among triggers, workflows, jobs, and steps.
What you can do after
Operate/configure predictable pipeline starts with repository events and reusable branch or tag filters.
How it connects
Connects triggers with source code repositories, pipelines, jobs, steps, workflows, branch filters, and tag filters.

Also explained in

Compare how 9 books explain trigger →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Platform Engineering. The section links point to the parts of the book it draws on.