Initial version

This commit is contained in:
David Boreham 2023-03-16 12:27:23 -06:00
parent 2291b2be8f
commit 313677fcf2
3 changed files with 38 additions and 1 deletions

31
drone/docker-compose.yml Normal file
View File

@ -0,0 +1,31 @@
# Deploy drone CI system
services:
drone:
image: drone/drone:2
environment:
- DRONE_GITEE_CLIENT_ID=f7018cdd7c2a2515eb0cc3eeea039a3aeda0991a520c9e6f7eca37b97761de20
- DRONE_GITEE_CLIENT_SECRET=a29f1465460f620d1238b6ebf207ae6778a6bfd074b3c7befe72d5f9647ed02c
- DRONE_RPC_SECRET=super-duper-secret
- DRONE_SERVER_HOST=gitea.local # TODO: make this more generic
- DRONE_SERVER_PROTO=http
restart: always
volumes:
- ./drone:/data
ports:
- 80
- 443
drone-runner:
image: drone/drone-runner-docker:1
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone
- DRONE_RPC_SECRET=super-duper-secret
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=drone-runner-1
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3000

5
drone/run-this-first.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then
set -x
fi
mkdir -p ./drone

View File

@ -1,5 +1,6 @@
version: "3"
# TODO: remove version since it is now redundant
# remove this network definition unless there's a reason for it
networks:
gitea:
external: false