From 55672fdfb91b3e377a27d91939d98457e8d948e2 Mon Sep 17 00:00:00 2001 From: polpetta Date: Sat, 5 Dec 2020 11:48:09 +0000 Subject: [PATCH] Add CI integration (#1) Add Drone-CI integration Co-authored-by: Davide Polonio Reviewed-on: https://git.poldebra.me/polpetta/server-dotfiles/pulls/1 --- .drone.yml | 9 +++++++ ci/docker-compose.yaml | 41 +++++++++++++++++++++++++++++++ git_server/docker-compose.yaml | 2 +- mail/docker-compose.yml | 1 + reverse_proxy/docker-compose.yaml | 1 + terraria/docker-compose.yaml | 1 + 6 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .drone.yml create mode 100644 ci/docker-compose.yaml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7c009f4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: Lint Check + image: sdesbure/yamllint + commands: + - yamllint **/*.y?ml diff --git a/ci/docker-compose.yaml b/ci/docker-compose.yaml new file mode 100644 index 0000000..bc7e4bb --- /dev/null +++ b/ci/docker-compose.yaml @@ -0,0 +1,41 @@ +--- +version: '3.7' + +services: + server: + image: drone/drone:1 + restart: always + env_file: + - env-droneci-server + networks: + - internal + - proxy + volumes: + - ci_server_data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + + runner: + image: drone/drone-runner-docker:1 + restart: always + env_file: + - env-droneci-runner + networks: + - internal + volumes: + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + - /var/run/docker.sock:/var/run/docker.sock + +volumes: + ci_server_data: + driver: local + driver_opts: + type: none + o: bind + device: "/srv/docker/ci/server_data" + +networks: + internal: {} + proxy: + external: true diff --git a/git_server/docker-compose.yaml b/git_server/docker-compose.yaml index 0310e58..5a350de 100644 --- a/git_server/docker-compose.yaml +++ b/git_server/docker-compose.yaml @@ -1,3 +1,4 @@ +--- version: '3.7' services: @@ -45,4 +46,3 @@ networks: proxy: external: true internal: - diff --git a/mail/docker-compose.yml b/mail/docker-compose.yml index 9927030..071ccc1 100644 --- a/mail/docker-compose.yml +++ b/mail/docker-compose.yml @@ -1,3 +1,4 @@ +--- version: '3.7' services: mail: diff --git a/reverse_proxy/docker-compose.yaml b/reverse_proxy/docker-compose.yaml index fe994ea..d4f1e1a 100644 --- a/reverse_proxy/docker-compose.yaml +++ b/reverse_proxy/docker-compose.yaml @@ -1,3 +1,4 @@ +--- version: '3.7' services: nginx: diff --git a/terraria/docker-compose.yaml b/terraria/docker-compose.yaml index 2897b5e..06a9611 100644 --- a/terraria/docker-compose.yaml +++ b/terraria/docker-compose.yaml @@ -1,3 +1,4 @@ +--- version: '3.7' services: