From 2edb0a098732117fc4de54458a4327e2ad5a6fa2 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 29 Apr 2023 21:32:03 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20ajout=20de=20quoi=20d=C3=A9ployer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7528e74 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +kind: pipeline +name: production +when: + event: [ push ] + branch: [ main ] + +clone: + git: + image: plugins/git + pull: true + +steps: + - name: build + image: node:latest + commands: + - npm i + - npx @11ty/eleventy + + - name: deploy + image: drillster/drone-rsync + settings: + hosts: + from_secret: deploy_host + target: /var/www/erratum.kazhnuz.space + source: _site/* + user: + from_secret: deploy_user + key: + from_secret: deploy_key + when: + branch: main + delete: true