Add drone CI/CD pipeline

This commit is contained in:
Jesper Hess 2019-03-02 22:34:33 +01:00
parent 787f47d45e
commit 0c1e94323c
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F
3 changed files with 26 additions and 0 deletions

View file

@ -21,6 +21,7 @@
- codimd - codimd
- netdata - netdata
- docker_registry - docker_registry
- drone
- websites - websites
smtp_host: postfix smtp_host: postfix

View file

@ -48,3 +48,7 @@ data_coop_website:
cryptohagen_website: cryptohagen_website:
domain: "cryptohagen.dk" domain: "cryptohagen.dk"
drone:
domain: "drone.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/drone"

View file

@ -0,0 +1,21 @@
---
- name: Drone container
docker_container:
name: drone
image: drone/drone:latest
restart_policy: unless-stopped
networks:
- name: external_services
volumes:
- "{{ drone.volume_folder }}:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
env:
DRONE_GITEA_SERVER: "https://{{ gitea.domain }}"
DRONE_GITEA_ALWAYS_AUTH: "False"
DRONE_RUNNER_CAPACITY: "2"
DRONE_SERVER_HOST: "{{ drone.domain }}"
DRONE_SERVER_PROTO: "https"
PLUGIN_CUSTOM_DNS: "91.239.100.100"
VIRTUAL_HOST: "{{ drone.domain }}"
LETSENCRYPT_HOST: "{{ drone.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"