Drone: Container-Native CI With a Licence Change to Read

Drone: Container-Native CI With a Licence Change to Read

Drone popularised the idea that every CI step is just a container, and then changed its licence.

The licence situation first

Drone moved to the Polyform Small Business licence, which restricts commercial use above a revenue threshold and is not an open source licence.

Woodpecker CI is the community fork from the last Apache-licensed version, and it is the one most self-hosters should choose. Our licences guide covers the pattern, which repeated with Redis, Terraform and Elasticsearch.

For personal self-hosting Drone’s licence is generally fine. For a business, read it rather than assume.

The model

kind: pipeline
type: docker
steps:
  - name: test
    image: golang:1.25
    commands:
      - go test ./...
  - name: build
    image: golang:1.25
    commands:
      - go build -o app

Every step names an image and some commands. There are no installed build tools on the runner, no language version management, no “works on my agent” problems: the image is the environment.

That is now how almost all CI works, and Drone was early and unusually pure about it. Our container basics guide covers what is happening underneath.

Runners

A central server handles webhooks and the UI; runners execute pipelines and can run anywhere, including behind NAT, since they poll outward. That makes a runner on your own hardware straightforward, in the way our self-hosted Actions runners guide describes for GitHub.

Where it fits

It integrates with Gitea, Forgejo, GitLab and GitHub, which makes it the CI layer for a self-hosted forge that lacks one or whose built-in CI you do not want.

Gitea and Forgejo now ship Actions, a GitHub-Actions-compatible runner, which has reduced the need for a separate CI system considerably.

Operational caution

A CI runner executes arbitrary code from your repositories. Give it its own unprivileged user and host, and treat privileged: true steps, which pipelines sometimes want for Docker-in-Docker, as the serious grant they are. Our capabilities guide and container hardening guide cover the alternatives.

Secrets injected into pipelines are visible to anything the pipeline runs.

License

Drone is released under the Polyform Small Business license, which is not OSI approved.