1
0
Fork 0
pod-woodpecker-server/README.md

1.3 KiB

pod-woodpecker-server

Deploy

Dokku

dokku apps:create woodpecker

dokku config:set woodpecker --no-restart WOODPECKER_GITEA=true
dokku config:set woodpecker --no-restart WOODPECKER_GITEA_URL=<secret>
dokku config:set woodpecker --no-restart WOODPECKER_GITEA_CLIENT=<Gitea OAuth client id>
dokku config:set woodpecker --no-restart WOODPECKER_GITEA_SECRET=<Gitea OAuth client secret>

dokku config:set woodpecker --no-restart WOODPECKER_HOST=https://woodpecker.example.org
dokku config:set woodpecker --no-restart WOODPECKER_ADMIN=user
dokku config:set woodpecker --no-restart WOODPECKER_AGENT_SECRET=<secret>

dokku storage:mount woodpecker /var/lib/dokku/data/storage/woodpecker:/var/lib/woodpecker

dokku config:set --no-restart woodpecker TZ=Europe/Rome
dokku config:set --no-restart woodpecker DOKKU_LETSENCRYPT_EMAIL=example@example.org


git push dokku main:main


dokku proxy:ports-add woodpecker http:80:8000
dokku proxy:ports-remove woodpecker http:80:5000

dokku letsencrypt:enable woodpecker
dokku letsencrypt:cron-job --add woodpecker

For the network

Both server and agent must be able to comunicate so we put them in the same docker network:

dokku network:create woodpecker-network

dokku network:set woodpecker attach-post-create woodpecker-network