You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
glenux 5b5d1def86 Update 'README.md' 1 month ago
Dockerfile fix: Handle database configuration 1 month ago
README.md Update 'README.md' 1 month ago
docker-compose.yml Initial import 1 month ago
entrypoint-wrapper.sh fix: Handle database configuration 1 month ago

README.md

Drone Server

Setup on Dokku

Create APP

dokku apps:create cicd

Setup Network & Domains

dokku network:create cicd_net
dokku network:set cicd initial-network cicd_net
dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=username@example.com

Setup Database

dokku postgres:create cicd
dokku postgres:link cicd cicd

Setup Volumes

dokku storage:mount cicd /home/data/cicd.drone:/data

Setup Configuration

dokku config:set cicd DRONE_DATABASE_DRIVER=postgres
dokku config:set cicd DRONE_GIT_ALWAYS_AUTH=false
dokku config:set cicd DRONE_GITEA_SERVER=https://gitea.example.com
dokku config:set cicd DRONE_SERVER_HOST=cicd.example.com
dokku config:set cicd DRONE_SERVER_PROTO=https
dokku config:set cicd DRONE_TLS_AUTOCERT=false

Setup Secrets

dokku config:set cicd DRONE_COOKIE_SECRET=$(openssl rand -hex 16)
dokku config:set cicd DRONE_RPC_SECRET=$(openssl rand -hex 16)
dokku config:set cicd DRONE_GITEA_CLIENT_ID=FIXME
dokku config:set cicd DRONE_GITEA_CLIENT_SECRET=FIXME

Deploy

git remote add dokku dokku@dokku.example.com:cicd
git push