From 6227083ed3bce409bb5201a416bde51fcafed1f9 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sun, 6 Feb 2022 14:51:22 +0100 Subject: [PATCH] Add auto deploy --- .drone.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b06274a..acbd564 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: build +name: test trigger: event: - push @@ -11,3 +11,26 @@ steps: image: asciidoctor/docker-asciidoctor commands: - asciidoctor *.adoc +--- +kind: pipeline +type: ssh +name: deploy +depends_on: +- test +trigger: + branch: + - senpai + event: + - push +server: + host: + from_secret: ssh_client_host + user: + from_secret: ssh_client_user + ssh_key: + from_secret: ssh_key +steps: +- name: pull + commands: + - cd /srv/website/projects + - git pull \ No newline at end of file