From 0c8507ab22761e754d908e4c927dd128352aad29 Mon Sep 17 00:00:00 2001 From: thest1tch Date: Sun, 16 Jul 2023 16:56:19 +0500 Subject: [PATCH] add drone and gitea --- docs/docker/drone.md | 37 +++++++++++++++++++++++++++++++++++ docs/docker/gitea.md | 0 docs/docker/mkdocs.md | 0 docs/docker/nextcloud/cron.md | 2 +- mkdocs.yml | 2 ++ 5 files changed, 40 insertions(+), 1 deletion(-) create mode 100755 docs/docker/drone.md mode change 100644 => 100755 docs/docker/gitea.md delete mode 100755 docs/docker/mkdocs.md mode change 100644 => 100755 docs/docker/nextcloud/cron.md diff --git a/docs/docker/drone.md b/docs/docker/drone.md new file mode 100755 index 0000000..9b7619c --- /dev/null +++ b/docs/docker/drone.md @@ -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_SECRET= + - DRONE_SERVER_HOST=drone.example.com + - DRONE_SERVER_PROTO=https + - 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 +``` \ No newline at end of file diff --git a/docs/docker/gitea.md b/docs/docker/gitea.md old mode 100644 new mode 100755 diff --git a/docs/docker/mkdocs.md b/docs/docker/mkdocs.md deleted file mode 100755 index e69de29..0000000 diff --git a/docs/docker/nextcloud/cron.md b/docs/docker/nextcloud/cron.md old mode 100644 new mode 100755 index 85a41cb..2fa225e --- a/docs/docker/nextcloud/cron.md +++ b/docs/docker/nextcloud/cron.md @@ -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 ``` diff --git a/mkdocs.yml b/mkdocs.yml index 0bf2b37..d23a7cd 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -27,6 +27,8 @@ nav: - During Scan: docker/nextcloud/during-scan.md - PHP imagick: docker/nextcloud/php-imagick.md - Cron: docker/nextcloud/cron.md + - Gitea: docker/gitea.md + - Drone CI: docker/drone.md - Игровые сервера: - Valheim: docker/games/valheim.md - WikiJS: docker/wikijs.md