add drone and gitea
continuous-integration/drone/push Build is passing Details

states/02
thest1tch 2 years ago
parent 1c985099d3
commit 0c8507ab22

@ -0,0 +1,37 @@
# Drone CI
`docker-compose.yml
```yaml
version: '3.7'
services:
drone:
image: drone/drone:latest
container_name: drone
environment:
- DRONE_GITEA_SERVER=https://gitea.example.com/
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_GITEA_CLIENT_ID=<DRONE_GITEA_CLIENT_ID>
- DRONE_GITEA_CLIENT_SECRET=<DRONE_GITEA_CLIENT_SECRET>
- DRONE_SERVER_HOST=drone.example.com
- DRONE_SERVER_PROTO=https
- DRONE_RPC_SECRET=<DRONE_RPC_SECRET>
- DRONE_USER_CREATE=username:admin,admin:true # Имя указать, что юзается в gitea
# Если есть PostgreSQL
#- DRONE_DATABASE_DRIVER=postgres
#- DRONE_DATABASE_DATASOURCE=postgres://root:password@1.2.3.4:5432/drone?sslmode=disable
restart: unless-stopped
drone-runner-docker:
image: drone/drone-runner-docker:1
container_name: drone-runner-docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=https
- DRONE_RPC_HOST=drone.example.com>
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=whatsinaname
restart: unless-stopped
```

@ -6,5 +6,5 @@ crontab -e
``` ```
В редакторе добавляем: В редакторе добавляем:
``` ```
*/5 * * * * docker exec -ti -u www-data nextcloud php cron.php */5 * * * * docker exec -u www-data nextcloud php cron.php
``` ```

@ -27,6 +27,8 @@ nav:
- During Scan: docker/nextcloud/during-scan.md - During Scan: docker/nextcloud/during-scan.md
- PHP imagick: docker/nextcloud/php-imagick.md - PHP imagick: docker/nextcloud/php-imagick.md
- Cron: docker/nextcloud/cron.md - Cron: docker/nextcloud/cron.md
- Gitea: docker/gitea.md
- Drone CI: docker/drone.md
- Игровые сервера: - Игровые сервера:
- Valheim: docker/games/valheim.md - Valheim: docker/games/valheim.md
- WikiJS: docker/wikijs.md - WikiJS: docker/wikijs.md

Loading…
Cancel
Save