add instructions to manually trigger a build

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2020-10-18 19:37:53 +02:00
parent 2d637066a9
commit b70c8582eb

View file

@ -61,6 +61,14 @@ You can either add secrets through the web UI or use drone directly from your te
drone secret add -repository username/repository-name --name foo --data bar --allow-pull-request
```
### Trigger build via curl
```bash
curl -X POST -i https://drone.9wd.eu/api/repos/felix/cloudron-drone-app/builds -H "Authorization: Bearer your-token"
```
Get token from https://drone.9wd.eu/account
## Inspiration
- [Setting up simple, self-hosted & fast CI/CD solution with Drone.io](https://webhookrelay.com/blog/2019/02/11/using-drone-for-simple-selfhosted-ci-cd/)