Working drone configuration with github.com SCM - made with docker-compose.
You need to create an OAuth application in github.com like described in the docs.drone.io/installation/single-machine
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
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%}
Generate a secret e.g. with openssl and use it at both services.
For drone/server here:
- DRONE_RPC_SECRET={% remote call secret %} # put your self created secret here
For drone/agent here:
- DRONE_SECRET={% remote call secret %} # put your self created secret here