Self-Hosted Runners and Agents

Complete the full lesson to earn 25 points

Work through each section, then tap “Mark as Complete” on the last one.

Section 1 of 11

✦ Skip the page breaks and see fewer ads — read each lesson on a single page with Pro

Lesson: Self-Hosted Runners and Agents in YAML Pipelines

Introduction: Why Runners Matter

In the world of modern software development, automation is the backbone of delivery. We rely on CI/CD pipelines to build, test, and deploy our code, but those pipelines do not run on thin air. They require compute resources—environments where shell commands are executed, binaries are compiled, and containers are orchestrated. While most cloud-based platforms provide "managed" or "hosted" agents out of the box, there comes a point in every growing organization where these managed solutions fall short. This is where self-hosted runners and agents enter the picture.

A self-hosted runner (or agent) is a machine that you own, manage, and configure to run your pipeline jobs. Instead of relying on the shared, multi-tenant infrastructure provided by your CI/CD platform provider, you dedicate a specific server, virtual machine, or container cluster to handle your workload. This shift in architecture provides you with granular control over the environment, security, and performance of your build processes. Understanding how to design, implement, and maintain these agents is a critical skill for any DevOps engineer or systems architect who needs to move beyond the constraints of standard cloud offerings.

Callout: Managed vs. Self-Hosted Runners Managed runners are ephemeral, pre-configured environments provided by the CI/CD platform. They are excellent for standard workflows but lack customization. Self-hosted runners require manual maintenance but offer total control over hardware, software dependencies, and network access. Choosing between them is a trade-off between operational overhead and environmental flexibility.


Section 1 of 11
PrevNext