From fe65dd694d9ef9e4c567b046a0414c28ceec1c76 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 28 Sep 2022 11:20:15 +0200 Subject: [PATCH] Drone CI build a deployment --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..43d5fa6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +name: default + +steps: +- name: build + image: debian + commands: + - apt-get -q update && apt-get -yq install wget + - wget -q https://github.com/getzola/zola/releases/download/v0.16.1/zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz + - tar zxf zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz + - ./zola build + +- name: deploy + image: drillster/drone-rsync + settings: + hosts: [ "0x45.cz" ] + user: drone + source: public/* + target: /srv/www/receptty.org + recursive: true + delete: true + environment: + RSYNC_KEY: + from_secret: rsync_private_key