https://github.com/mko-x/docker-compose-drone
Working drone configuration made with docker-compose
https://github.com/mko-x/docker-compose-drone
docker docker-compose drone-ci
Last synced: 2 months ago
JSON representation
Working drone configuration made with docker-compose
- Host: GitHub
- URL: https://github.com/mko-x/docker-compose-drone
- Owner: mko-x
- License: mit
- Created: 2019-02-08T16:29:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-08T23:27:27.000Z (over 7 years ago)
- Last Synced: 2025-04-06T03:16:31.451Z (about 1 year ago)
- Topics: docker, docker-compose, drone-ci
- Language: Dockerfile
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://docs.drone.io/installation/github/single-machine/)
## Use github oAuth
Put the created github OAuth credentials into your environment.
```yaml
- 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
```yaml
- 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:
```yaml
- DRONE_RPC_SECRET={% remote call secret %} # put your self created secret here
```
## drone_agent
For drone/agent here:
```yaml
- DRONE_SECRET={% remote call secret %} # put your self created secret here
```