From 0f9179d3ec9529545b1f20c44e0d4da9b749a9f3 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sun, 3 Jul 2022 03:24:56 +0200 Subject: [PATCH] drone deploy for dev --- .drone.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 854b09b..5be9a4c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -69,4 +69,22 @@ steps: event: include: - push -# test \ No newline at end of file +- name: deploy dev + image: appleboy/drone-ssh + settings: + host: + - s.ar21.de + username: root + key: + from_secret: DEPLOY_SSH_KEY + port: 22 + command_timeout: 2m + script: + - cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev + when: + branch: + include: + - dev + event: + include: + - push \ No newline at end of file