From 9da2062f3915724aa7fd1605300ebf1bfebc5211 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 6 Dec 2019 10:40:55 -0500 Subject: [PATCH] test deploy --- .drone.yml | 19 +++++++++++++++++++ wiki/index.php | 1 + 2 files changed, 20 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5bfbbb8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,19 @@ +--- +kind: pipeline +type: ssh +name: deploy + +server: + host: + from_secret: host + user: + from_secret: username + ssh_key: + from_secret: ssh_key + +steps: + - name: deploy + commands: + - cd /var/www/tilde.chat + - sudo -Hu www-data git pull origin master + diff --git a/wiki/index.php b/wiki/index.php index 3243cdd..3d0a98a 100644 --- a/wiki/index.php +++ b/wiki/index.php @@ -36,6 +36,7 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {

if you want to contribute, check out the source and open a PR!

+

commits to master will be automatically deployed


pages: