2022-08-18 18:35:41 +00:00
|
|
|
# Drone Runner
|
2022-08-18 18:29:48 +00:00
|
|
|
|
|
|
|
## Setup on Dokku
|
|
|
|
|
|
|
|
Create APP
|
|
|
|
|
2022-08-18 18:35:41 +00:00
|
|
|
dokku apps:create cicd-agent
|
2022-08-18 18:29:48 +00:00
|
|
|
|
|
|
|
Setup Network & Domains
|
|
|
|
|
|
|
|
dokku network:create cicd_net
|
2022-08-18 18:35:41 +00:00
|
|
|
dokku network:set cicd-agent attach-post-create cicd_net
|
|
|
|
dokku config:set --no-restart cicd-agent DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
2022-08-18 18:29:48 +00:00
|
|
|
|
|
|
|
Setup Volumes
|
|
|
|
|
2022-08-18 18:35:41 +00:00
|
|
|
dokku storage:mount cicd-agent /var/run/docker.sock:/var/run/docker.sock
|
2022-08-18 18:29:48 +00:00
|
|
|
|
|
|
|
Setup Configuration
|
|
|
|
|
2022-08-18 18:35:41 +00:00
|
|
|
dokku config:set cicd-agent DRONE_RPC_PROTO=http
|
|
|
|
dokku config:set cicd-agent DRONE_RPC_HOST=drone
|
|
|
|
dokku config:set cicd-agent DRONE_RUNNER_CAPACITY=2
|
|
|
|
dokku config:set cicd-agent DRONE_RUNNER_NETWORKS=cicd_net
|
|
|
|
dokku config:set cicd-agent DRONE_DEBUG=false
|
|
|
|
dokku config:set cicd-agent DRONE_TRACE=false
|
2022-08-18 18:29:48 +00:00
|
|
|
|
|
|
|
Setup Secrets
|
|
|
|
|
2022-08-18 18:35:41 +00:00
|
|
|
dokku config:set cicd-agent DRONE_RPC_SECRET=$(...)
|
2022-08-18 18:29:48 +00:00
|
|
|
|
|
|
|
Deploy
|
|
|
|
|
2022-08-18 18:35:41 +00:00
|
|
|
git remote add dokku dokku@dinlas.apps.glenux.net:cicd-agent
|
2022-08-18 18:29:48 +00:00
|
|
|
git push
|
|
|
|
|