Woodpecker CI: a lightweight pipeline that isn't tied to one forge
A community fork born the day Drone stopped being free, and why the forge-agnostic model still matters

Contents
Drone CI spent years as one of the better self-hosted pipeline tools you could run: pipelines defined as containers, a clean YAML format, and a UI that got out of your way. Then its maintainer, Bots and Badges Inc, moved Drone 1.0 to a license that restricts free use to a single user and a handful of repositories, with anything bigger pushed toward a paid Enterprise tier. That is a legitimate way to fund a project, but it left everyone who had built a small self-hosted CI habit around the free version stuck choosing between paying, freezing on an old release forever, or finding something else. A group of contributors picked the third option and forked the last fully open version of Drone, calling the result Woodpecker CI. I moved my own pipelines over the week the fork was announced and have not looked back.
What makes this worth writing about is not the license drama, which is a story you have read a dozen times about a dozen projects. It is that the fork kept the one architectural decision that made Drone worth using in the first place: a CI pipeline is just a sequence of containers, and the tool talking to your git forge is a thin, swappable layer on top. Most self-hosted CI tools eventually grow an opinion about which forge you use. Woodpecker refuses to.
The container-native pipeline model
Every Woodpecker step is a container. Not “runs inside a container that also has some magic CI runtime injected” — the step’s image: field is exactly the image that gets pulled and run, your commands: are executed inside it, and the working directory is your checked-out repository mounted as a volume. There is no proprietary DSL hiding behind the YAML. If you can docker run an image and get the behaviour you want, you can drop it straight into a pipeline step and get the same behaviour in CI.

| |
Three things are worth noticing here. First, test and build use the exact same Go image you would use locally, so a failure in CI reproduces with docker run -it golang:1.12 bash and nothing more exotic. Second, secrets are referenced by name and injected as environment variables at run time, never written into the YAML itself, which matters because that YAML lives in your repository history forever. Third, the publish step uses a “plugin,” which in Woodpecker’s model is nothing more than another container image with a documented set of settings it reads as environment variables — there is no special plugin API to learn, just a convention.
Why the forge doesn’t matter to the pipeline
Drone, and Woodpecker after it, separate the pipeline runtime from the “forge” — the thing hosting your git repository and issuing webhooks. Woodpecker ships forge integrations for GitHub, GitLab, Gitea and Bitbucket, and the integration’s job is narrow: authenticate the user via OAuth, receive the push/PR webhook, fetch the repository, and report status checks back. None of that logic leaks into how a pipeline executes. A .woodpecker.yml that builds and tests a Go project behaves identically whether the push came from a GitHub repository or a self-hosted Gitea instance, because by the time the pipeline runs, the forge has already done its one job and stepped out of the way.
This matters more than it sounds like it should. I run a small self-hosted Gitea instance for personal projects and still keep a couple of repositories on GitHub for anything I want visible to other people. With a forge-agnostic CI server, I get the same pipeline behaviour, the same server, and the same secrets management regardless of where the code physically lives. Moving a repository from GitHub to my own Gitea instance, or the other way round, means re-pointing the webhook and re-adding the repo in the Woodpecker UI. The pipeline file does not change at all. Tools that couple tightly to one forge — treating its API as a first-class citizen and everything else as an afterthought — make that kind of move painful enough that people just don’t do it, which quietly locks you into whichever forge you happened to pick first.
Setting it up
A minimal Woodpecker deployment is a server component and one or more agents, run as containers, talking to each other over gRPC.
| |
The agent needs access to a Docker socket because that is literally how it runs your steps: it is a thin loop that pulls jobs from the server’s gRPC queue and shells out to the Docker API to run each step’s container. You register an OAuth application on your forge pointing back at the Woodpecker host, drop the client ID and secret into the server’s environment, and once it starts you log in through that forge’s OAuth flow rather than creating a separate account. Enabling a repository is a toggle in the Woodpecker UI; the server registers the webhook on your behalf.
WOODPECKER_MAX_WORKFLOWS is the setting worth tuning first. It caps how many pipelines a single agent runs concurrently, and on a small homelab box it is easy to set this too high, watch four Go builds compile at once, and wonder why your other containers just fell over. Two concurrent workflows on a four-core box is a reasonable starting point; watch docker stats during a busy CI run and adjust from there.
Migrating an existing Drone pipeline
Moving over is less work than the license drama makes it sound, because Woodpecker kept the pipeline format close enough that most .drone.yml files need only a rename to .woodpecker.yml and a change to the top-level key before they run. The step syntax, the image:/commands: shape, and the when: conditionals carry across essentially unchanged, which is the direct payoff of forking a project instead of writing a competitor from scratch. Where it gets fiddly is plugins. Most Drone plugin images read configuration purely from the settings: block, translated into environment variables at run time, and those keep working with zero changes. A smaller set of plugins hardcode assumptions about Drone-specific environment variables — build numbers, commit metadata, that kind of thing — read directly by the plugin’s binary rather than passed through settings, and those need either a compatibility shim or a swap to a maintained Woodpecker-specific build of the same plugin.
The practical way to find out which category a given plugin falls into is to run the pipeline once with verbose logging on and grep the plugin’s output for an unset-variable warning. I moved four repositories over the week of the fork and hit exactly one plugin that needed replacing — a changelog generator that expected a DRONE_TAG variable Woodpecker no longer populated under that name. Everything else, including the Docker publish step, ran on the first try. OAuth registration is the other piece worth doing early rather than discovering mid-migration: Woodpecker needs its own application registered on the forge, separate from whatever Drone had configured, because the callback URL points at a different host.
Secrets are the one thing that doesn’t carry over automatically no matter how compatible the YAML is. Woodpecker stores its own secrets separately from whatever Drone had configured, scoped per repository or per organisation depending on how you add them, so budget time to re-enter registry credentials, deploy keys and any API tokens your pipelines depend on before you decommission the old server. It’s tedious rather than difficult, and it’s the one step that’s easy to forget until the first post-migration build fails on a missing credential instead of a broken step.
Where it falls short of a bigger stack
Woodpecker is deliberately small, and the honest way to describe what you give up is to say what it doesn’t try to do. There is no built-in artifact storage server, so anything you want to keep between pipeline runs — build caches, compiled binaries, coverage reports — needs an external destination: an S3-compatible bucket, a registry, or a shared volume you manage yourself. There is no visual pipeline editor; you write YAML by hand, which is fine for anyone reading this but a real onboarding cost for a team used to a GUI-first tool. And matrix builds, multi-forge repository mirroring, and the more elaborate approval-gate workflows that a platform like GitLab CI offers out of the box need to be built up from smaller primitives here, if they are possible at all.
None of that is a defect so much as a trade-off, and it is the right trade-off for the audience this tool actually serves: a single person or small team running CI for a handful of repositories on hardware they already own, who would rather understand their entire pipeline stack than configure a fraction of a much larger one. If your day job needs a compliance-audited approval chain across forty microservices, this is not that tool, and it was never trying to be.
Faking matrix builds and shared caches
The lack of built-in matrix builds is the limitation people notice first, and the workaround is blunter than a dedicated feature but gets most projects to the same place. Where GitLab CI or a hosted provider gives you a matrix: key that expands into parallel jobs automatically, Woodpecker expects you to write out each variant as its own step, distinguished only by the image tag or an environment variable you pass in. Testing a Go service against three language versions means three near-identical test-go1.x steps in the YAML rather than one step with a matrix declaration, which is more typing but no less reliable, and it has the side benefit of making exactly which combinations run visible in the file itself rather than generated at run time from a syntax you have to hold in your head.
Build caching follows the same pattern of plain container behaviour, nothing pipeline-specific. Because a step is just docker run under the hood, anything that would speed up a local build speeds up the same step in CI: mounting a persistent volume for Go’s module cache or npm’s cache directory, or building with BuildKit’s inline cache so a Docker layer that hasn’t changed gets reused across runs instead of rebuilt from scratch. None of that is Woodpecker configuration in the traditional sense; it’s ordinary container and build-tool behaviour that happens to work because the pipeline never hides the container from you in the first place. The trade-off is that you’re responsible for wiring it up yourself, on your own agent’s disk, rather than getting a managed cache backend a hosted CI provider would give you automatically. It’s the same trade-off running through the rest of the tool: everything it doesn’t automate stays visible, because nothing is hidden behind a managed feature you’d otherwise have to trust blindly.
Troubleshooting the common failure modes
The single most common problem is a pipeline that runs fine locally but never triggers in CI, and it is almost always the webhook. Check the forge’s webhook delivery log first — Gitea and GitHub both show recent deliveries with the response code Woodpecker sent back. A 401 there usually means the OAuth secret in your compose file has drifted from what is registered on the forge; a connection-refused error usually means WOODPECKER_HOST does not match the URL the forge can actually reach, which trips people running Woodpecker behind a reverse proxy that isn’t correctly forwarding to the container.
The second most common problem is a step that hangs rather than fails. Because every step is a real container, a build tool prompting for interactive input — a package manager asking to confirm a version, a login flow expecting a TTY — will sit there until the pipeline’s own timeout kills it, and the logs will look like nothing is happening rather than showing an obvious error. Pin your image tags and pass any --yes/non-interactive flags explicitly; CI has no keyboard.
Finally, watch disk usage on the agent host. Every pipeline run pulls images and leaves build layers behind, and unlike a hosted CI provider that hands you a disposable VM per run, a self-hosted agent accumulates that cruft on your own disk indefinitely. A weekly docker system prune cron job, or Woodpecker’s own image-caching settings tuned down, keeps this from becoming a 2am page.
Is it worth it
If you already run one forge and never plan to touch another, a CI tool that is tightly integrated with that specific forge will hand you features Woodpecker leaves as an exercise for the reader — richer status checks, deeper API integration, a bigger plugin ecosystem. But if you value being able to move your source hosting without rewriting your CI, or you simply want a pipeline tool small enough to actually understand end to end, the fork earned its existence. It kept the good idea Drone had — pipelines as plain containers, decoupled from wherever the code lives — and kept it free. For a personal or small-team homelab setup, that is exactly the ratio of power to complexity worth having.
See also this site’s notes on running GitHub Actions workflows locally with act before you push, and on self-hosting your own git server with Gitea if you want the forge half of this story too.




