Woodpecker is a community fork of the Drone CI system.
Find a file
2015-07-01 23:22:05 -07:00
bin fixed gitignore of dist folder 2015-05-17 12:18:03 -07:00
cmd document repository API methods 2015-06-23 11:35:21 -07:00
dist adapt drone.toml to new version 2015-06-12 19:15:51 +02:00
doc first draft swaggger spec, complete 2015-07-01 23:22:05 -07:00
Godeps removed un-used import from Godep 2015-05-31 13:36:51 -07:00
pkg Merge remote-tracking branch 'origin/0.4-database' into 0.4-database 2015-06-25 22:38:23 -07:00
.dockerignore enforce plugin whitelist 2015-06-07 17:04:57 -07:00
.drone.yml use drone's go:1.3 image until we upgrade to 0.4 2015-06-04 13:39:16 -07:00
.gitignore dumb mistake excluded toml in deb 2015-06-04 13:31:48 -07:00
Dockerfile add empty drone.toml to satisfy drone startup requirements 2015-06-05 19:48:28 +02:00
Dockerfile.env switch to /bin/sh instead of /bin/bash for portability 2015-06-06 14:00:36 -07:00
LICENSE initial public commit 2014-02-07 03:10:01 -07:00
Makefile Merge remote-tracking branch 'upstream/0.4.0' into 0.4.0 2015-05-23 18:53:11 -07:00
README.md adapt drone.toml to new version 2015-06-12 19:15:51 +02:00

Highly experimental branch that implements the following features:

  • Pluggable database backends
  • Pluggable queue
  • Matrix builds
  • Build plugins
  • New Yaml syntax
  • and more ...

Running Drone:

./drone --config="/path/to/config.toml"

Configuring Drone:

[server]
addr = ":80"
cert = ""
key = ""

[session]
secret = ""
expires = ""

[database]
driver="sqlite3"
datasource="/var/lib/drone/drone.sqlite"

[docker]
cert = ""
key = ""
addr = "unix:///var/run/docker.sock"
swarm = ""

[remote]
kind = "github"
base = "https://github.com"
orgs = []
open = false
private = false
skip_verify = true

[auth]
client = ""
secret = ""
authorize = "https://github.com/login/oauth/authorize"
access_token = "https://github.com/login/oauth/access_token"
request_token = ""

[agents]
secret = ""

Configuration settings can also be set by environment variables using the scheme DRONE_<section>_<confkey>, substituting the section title for <section> and the key for <confkey>, in all caps. For example:

#!/bin/bash
# prepare environment for executing drone
DRONE_REMOTE_BASE="https://github.com"      # for [remote] section, 'base' setting
DRONE_DOCKER_ADDR="tcp://10.0.0.1:2375"     # for [docker] section, 'addr' setting
DRONE_AUTH_CLIENT="0123456789abcdef0123AA"  # for [auth] section, 'client' setting
DRONE_AUTH_SECRET="<sha-1 hash secret>"     # for [auth] section, 'secret' setting
DRONE_AUTH_ACCESSTOKEN="<url>"              # for [auth] section, 'access_token' setting

exec ./drone -config=drone.toml

NOTE: Configuration settings from environment variables override values set in the TOML file.

From Source

Commands to build from source:

make bindata # create .go files for web assets
make         # create binary files in ./bin
make test    # execute unit tests

Commands to run:

bin/drone
bin/drone --debug # debug mode loads static content from filesystem

NOTE if you are seeing slow compile times you can try running go install for the vendored go-sqlite3 library:

go install github.com/drone/drone/Godeps/_workspace/src/github.com/mattn/go-sqlite3