An open API service indexing awesome lists of open source software.

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

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
```