add drone yml
Some checks reported errors
continuous-integration/drone Build was killed
continuous-integration/drone/push Build was killed

This commit is contained in:
Valentin CZERYBA 2022-10-28 21:33:15 +02:00
parent 372f1d7c18
commit 1caaac3485
5 changed files with 102 additions and 15 deletions

11
.drone.yml Normal file
View File

@ -0,0 +1,11 @@
kind: pipeline
name: default
steps:
- name: check ansible syntax
image: plugins/ansible:3
settings:
playbook: playbook.yml
galaxy: requirements.yml
inventory: inventory
syntax_check: true

View File

@ -1,9 +1,22 @@
drone_gitea_server: https://git.valczeryba.ovh
drone_server_host: drone.valczeryba.ovh
drone_server_host: drone.valczeryba.ovh:8000
drone_agents_enabled: true
drone_server_proto: http
drone_tls_autocert: false
drone_open: false
drone_host: http://localhost:8000
drone_rpc_server: drone-server:8000
msg: drone
msg: drone
project_src: "/home/valentin/drone"
project_directory:
- "{{ project_src }}"
project_env: env-drone.j2
docker_compose_file: "docker-compose-drone.yml"
ports_tcp:
- 8000
- 9000

View File

@ -1,14 +1,18 @@
$ANSIBLE_VAULT;1.1;AES256
66626434383165353866386563396662333536643562623464653261666236396134393037363662
3162326332336563633633363430306462623062626361300a366535646464333030626232383734
37326534336662633532666264313235626638656363616362663361643235633662643832326562
6365663364323562340a666563373038653137636565323139663530626535343430363663666133
66383939656232653332343639633332626165343662633738333133353138666635303034646435
65616364656433323734303232356131666333313333366332333964316563373464333533633066
36326163346238353861313339623061643932333061373131333438666536383063343239373462
31396164366132393764356334663866636433626464646431366633376164393065366230666436
31636238313063613132343062656465386533326535356234356438613139616130336166303836
65333061623331363230623530613738306530386139383937313033376331303938333566396334
62656439373266393565303961623564306564386633383337626330636430653732373738366331
64353339363461636364323361313831393865393935616334336636663963653861326130326461
63633062373564376633663039393630643634306565613338646164613037373136
33363236363632653263383164663339323738366635613164353231396462303361333135623330
3564623639306161626331643662366339663465313132370a636136316366353434353035346138
32393263626430326234626235666137306262666134656232316465626563633535373732643838
3861303734656165630a646433623162393563303862393661303434356234643638303030646432
33386130626163653965353732313164373239303366626433393566343638343362633234313339
63323532613733353538303038663632623932366238343132356536396165636137633036313533
62396134303862623733323639633134323838366164363937626138386265643465356464366565
34303438383838656632383462366162663538353430646165643339383261643063373431383364
38646239613465356337306636306639336164623761666165616663626635343130653230656162
65396561343638366532313062363066663838346337356463316331336133336234653334613830
66326337633038623036613430316662316432613962303337663430643531653665633264343564
39383564633432643039306236613633643236646163353831346632653764633436336237346433
33306136346235386465356630386333646366663037386230306261346161303938633032373361
63306431306439373037343663616263373037386235303665643635336430346139653165636634
63323634306333663030383431363437383966633461333432393636613863306134386162326664
36376361343738653531623137326266663635633633323239633263383761616538656535343039
6435

View File

@ -0,0 +1,51 @@
version: '3.5'
services:
drone-server:
image: drone/drone:2
ports:
- 8000:80
- 9000:443
networks:
- drone
volumes:
- ./drone-data:/var/lib/drone/
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
restart: always
environment:
- DRONE_GITHUB_SKIP_VERIFY=true
- DRONE_AGENTS_ENABLED=true
- DRONE_SERVER_PROTO=http
- DRONE_TLS_AUTOCERT=false
- DRONE_OPEN=false
- DRONE_HOST=http://drone.valczeryba.ovh:8000
- DRONE_GITHUB=true
# Variables below set via drone.env file
# - DRONE_USER_CREATE=
# - DRONE_USER_FILTER=
# - DRONE_GITHUB_CLIENT_ID=
# - DRONE_GITHUB_CLIENT_SECRET=
# - DRONE_RPC_SECRET=
drone-agent:
image: drone/agent:1.2.1
command: agent
restart: always
depends_on:
- drone-server
networks:
- drone
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
environment:
- DRONE_RPC_SERVER=drone-server:8000
# Variables below set via drone.env file
# - DRONE_RPC_SECRET=
networks:
drone:
name: drone_network

View File

@ -0,0 +1,8 @@
# Drone secret key, used for private communication between agents and web UI
DRONE_USER_CREATE=
DRONE_USER_FILTER= {{ drone_user_filter }}
DRONE_GITEA_SERVER={{ drone_gitea_server }}
DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }}
DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }}
DRONE_RPC_SECRET={{ drone_rpc_secret }}
DRONE_SERVER_HOST={{ drone_server_host }}