No description
Find a file
glenux b22d8bf874
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
continuous-integration/drone Build is passing
Update Dockerfile
2024-10-19 09:04:19 +00:00
.drone.yml ci: Add drone pipeline 2023-09-11 14:06:01 +02:00
docker-compose.yml Initial import 2022-08-18 17:31:05 +02:00
Dockerfile Update Dockerfile 2024-10-19 09:04:19 +00:00
entrypoint-wrapper.sh fix: Handle database configuration 2022-08-18 19:16:44 +02:00
README.md Merge branch 'master' of code.apps.glenux.net:glenux-opencontainers/service-drone-server 2023-09-11 14:04:42 +02:00

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
dokku config:set cicd DRONE_USER_CREATE=username:admin,machine:false,admin:true,token:$(openssl rand -hex 16)

Deploy

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