🐝
CI/CD & GitOps

Buildkite

Self-hosted agents with cloud pipeline orchestration

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Buildkite runs builds on agents you host, orchestrated from a cloud dashboard.

📁

Config files for Buildkite

Where to create or edit the main configuration — paths below match the setup steps.

  • .buildkite/pipeline.yml

    Location: Repository → .buildkite/ (or pipeline path in UI)

    Agent steps and command blocks

📥

Step 01

Install Buildkite

(01)Install Buildkite

Linux
1# Install agent
2curl -fsSL https://apt.buildkite.com/buildkite-agent.gpg.key | sudo apt-key add -
3echo "deb https://apt.buildkite.com/buildkite-agent stable main" | sudo tee /etc/apt/sources.list.d/buildkite-agent.list
4sudo apt-get update && sudo apt-get install -y buildkite-agent
⚙️

Step 02

Configure Buildkite

(01)Add .buildkite/pipeline.yml

Default path is .buildkite/pipeline.yml — or set a custom path in the Buildkite UI.

Linux
1mkdir -p .buildkite
2cat > .buildkite/pipeline.yml << 'EOF'
3steps:
4 - label: ":nodejs: Test"
5 command: npm ci && npm test
6EOF
7git add .buildkite/pipeline.yml && git commit -m "Add Buildkite pipeline" && git push

Step 03

Verify

(01)Verify installation

Linux
1buildkite-agent --version