From 96a614c1af8044da5075e6aa71f49da2f4951aed Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 14 Sep 2020 12:11:50 -0500 Subject: [PATCH] Add logic to restart services to CD config --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.drone.yml b/.drone.yml index f018d10..1f4bda3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,6 +30,24 @@ steps: event: - tag - promote + - name: restart production services + image: appleboy/drone-ssh + settings: + host: + from_secret: deploy_ssh_host + username: + from_secret: deploy_ssh_admin_user + key: + from_secret: deploy_ssh_key + port: + from_secret: deploy_ssh_port + script: + - systemctl restart coreid-www + - systemctl restart coreid-jobs + when: + event: + - tag + - promote - name: send success notifications image: plugins/webhook settings: