From 35d05b0cce8737bd9c00beb74a35c372e7118e0b Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 12 Aug 2015 00:25:19 -0700 Subject: [PATCH] added dronerc to project --- .gitignore | 12 ++++-------- dist/drone/etc/drone/dronerc | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 dist/drone/etc/drone/dronerc diff --git a/.gitignore b/.gitignore index 4ea86ad96..35e5df54d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,11 +2,6 @@ drone.sublime-project drone.sublime-workspace .vagrant -# ignore the drone binary, but makes sure -# that subdirs named drone aren't ignored -drone -!dist/** - *~ ~* *.sqlite @@ -22,16 +17,17 @@ drone *.min.js *_bindata.go *.toml -!dist/drone/etc/drone/dronerc -!dist/drone/etc/drone/drone.toml # generate binaries cmd/drone-agent/drone-agent cmd/drone-build/drone-build cmd/drone-agent/drone-server -# generated binaries +# generated binaries in ./bin bin/drone bin/drone-agent bin/drone-build bin/drone-server + +# generated binaries in dpkg +dist/drone/usr/local/bin/drone diff --git a/dist/drone/etc/drone/dronerc b/dist/drone/etc/drone/dronerc new file mode 100644 index 000000000..b20198427 --- /dev/null +++ b/dist/drone/etc/drone/dronerc @@ -0,0 +1,31 @@ +#!/bin/bash + +# server configuration + +SERVER_ADDR=":80" +#SERVER_CERT="" +#SERVER_KEY="" + +# database configuration + +DATABASE_DRIVER="sqlite3" +DATABASE_CONFIG="/var/lib/drone/drone.sqlite" + +# remote configuration + +CLIENT="" # oauth2 client. REQUIRED +SECRET="" # oauth2 secret. REQUIRED + +REMOTE_DRIVER="github" +REMOTE_CONFIG="https://github.com?client_id=$CLIENT&client_secret=$SECRET" + +# docker configuration + +DOCKER_HOST="unix:///var/run/docker.sock" +#DOCKER_CERT="" +#DOCKER_KEY="" +#DOCKER_CA="" + +# plugin configuration + +PLUGIN_FILTER="plugins/*"