ansible-nas/website/docs/applications/development-tools/drone_ci.md

20 lines
787 B
Markdown
Raw Normal View History

2022-11-06 23:26:26 +00:00
---
title: "Drone CI"
---
Drone is a self-service Continuous Integration platform for busy development teams.
Check it out at [https://drone.io](https://drone.io).
2022-11-06 23:26:26 +00:00
## Usage
Set `drone_ci_enabled: true` in your `inventories/<your_inventory>/group_vars/nas.yml` file.
2022-11-06 23:26:26 +00:00
Gitea (`gitea_enabled: true`) must be set up and running before attempting to set up Drone CI.
## Setup Tasks
An Oauth2 application must be set up in Gitea. Visit [https://docs.drone.io/server/provider/gitea/](https://docs.drone.io/server/provider/gitea/) for more info, then set `drone_ci_gitea_client_id` and `drone_ci_gitea_client_secret` accordingly. The Gitea Redirect URL will be `http://<ansible_nas_ip>:{{ drone_ci_port_http }}/login`
2022-11-06 23:26:26 +00:00
Set `drone_ci_admin_user` to the same username as your user in Gitea.