mko-x / docker-compose-drone

Working drone configuration made with docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-compose-drone

Working drone configuration with github.com SCM - made with docker-compose.

Prerequisites

Create github oAuth

You need to create an OAuth application in github.com like described in the docs.drone.io/installation/single-machine

Use github oAuth

Put the created github OAuth credentials into your environment.

- DRONE_GITHUB_CLIENT_ID={% github oauth client id %} # your client id goes here
- DRONE_GITHUB_CLIENT_SECRET={% github oauth client secret %} # your client secret goes here

Additional secret github token

Navigate to the settings/hooks of the project you want to build with drone.

Like: https://github.com/{github-username}/{repo-name}/settings/hooks

Click on 'edit' next to the webhook displayed.

Create a random secret_token (e.g. with https://randomkeygen.com/)

Now at Secret - click on 'edit' again and paste your secret_token

- SECRET_TOKEN={% your self created secret token in github webhook%}

RPC secret

Generate a secret e.g. with openssl and use it at both services.

drone_server

For drone/server here:

- DRONE_RPC_SECRET={% remote call secret %} # put your self created secret here

drone_agent

For drone/agent here:

- DRONE_SECRET={% remote call secret %} # put your self created secret here

About

Working drone configuration made with docker-compose

License:MIT License


Languages

Language:Dockerfile 100.0%