From 3d6c08d73ee98b890e8e3635bc3c5ee34ae6200e Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 27 Feb 2023 13:22:58 +0000 Subject: [PATCH] commit dronconfig --- .drone.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.drone.yml b/.drone.yml index e69de29..43ff933 100644 --- a/.drone.yml +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +type: docker +name: default + +steps: + + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: build + image: klakegg/hugo:ext-ci + commands: + - cd themes/anakne && npm i && cd - + - hugo --gc --minify --environment production + + - name: deploy + image: appleboy/drone-scp + settings: + host: "10.0.2.1" + target: /mnt/volume1/shares/www/richard-dern.fr/www/ + source: public/* + username: + from_secret: ssh_user + password: + from_secret: ssh_password + +trigger: + branch: + - master \ No newline at end of file