mirror of
https://github.com/fbartels/cloudron-drone-app.git
synced 2024-11-21 21:00:59 +00:00
Run drone-server on Cloudron
438909a049
Signed-off-by: Felix Bartels <felix@host-consultants.de> |
||
---|---|---|
.dockerignore | ||
.gitignore | ||
CloudronManifest.json | ||
docker-compose.yml | ||
Dockerfile | ||
Makefile | ||
README.md | ||
run-agent.sh | ||
start.sh | ||
supervisor-drone-server.conf |
Drone CI for Cloudron
Run the Drone server on Cloudron and the agents locally.
I am using this setup together with a Gitea running on the same Cloudron installation.
Requirements
docker-compose
git
make
- Cloudron CLI
Tips and Tricks
I would also like to share some very useful commands. To install drone
CLI, follow official docs.
Using drone-cli
Go to your user settings and get login information
export DRONE_SERVER=https://drone.9wd.eu
export DRONE_TOKEN=your token
drone info
Executing pipelines directly
You can also run pipelines directly with the Drone CLI:
drone exec --secret-file drone_secrets.yaml .drone.yml
A template for drone-secrets.yaml
:
slack_url: https://hooks.slack.com/services/xxxxxxxxxxxx
Adding secrets through CLI
You can either add secrets through the web UI or use drone directly from your terminal:
drone secret add -repository username/repository-name --name foo --data bar --allow-pull-request
Inspiration
TODO
- [*] remove commited secrets
- [*] retrieve rpc secret from cloudron