service-drone-runner/README.md

41 lines
954 B
Markdown
Raw Normal View History

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
2024-10-19 09:49:02 +00:00
Setup Network
2022-08-18 18:29:48 +00:00
dokku network:create cicd_net
2022-08-18 18:35:41 +00:00
dokku network:set cicd-agent attach-post-create cicd_net
2024-10-19 09:49:02 +00:00
dokku proxy:disable cicd-agent
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
dokku config:set cicd-agent DRONE_RPC_SECRET=$(dokku config:get cicd 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
git push dokku master
2022-08-18 18:29:48 +00:00
2024-10-19 09:55:57 +00:00
dokku git:from-image cicd-agent "glenux/service-drone-runner:$IMAGE_TAG"