From 9711a9c02a65a346c78c70b4c2ddf2232632856b Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sat, 30 Jul 2022 18:02:05 +0200 Subject: [PATCH] Reload server on change --- .drone.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7903819..c213942 100644 --- a/.drone.yml +++ b/.drone.yml @@ -43,6 +43,12 @@ steps: - git config --global --add safe.directory /srv/website/content - git switch senpai || true - git pull +- name: reload-server + when: + branch: + - senpai + commands: + - docker container restart website_server_1 - name: pull-dev when: branch: @@ -52,3 +58,9 @@ steps: - git config --global --add safe.directory /srv/website-dev/content - git switch dev || true - git pull +- name: reload-server-dev + when: + branch: + - dev + commands: + - docker container restart website-dev_server_1