From 0181b9b1f229f8e4173e2c279caf8914a2c0919f Mon Sep 17 00:00:00 2001 From: David Sanchez Date: Wed, 16 Feb 2022 14:14:01 +0100 Subject: [PATCH] add drone ci build --- .drone.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fa8bd1a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,44 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: build + image: klakegg/hugo:0.92.1-ext-ci + commands: + - hugo + + - name: deploy + image: drillster/drone-rsync + settings: + hosts: [ "irssv1.ups-tlse.fr" ] + user: + from_secret: ssh_user + key: + from_secret: ssh_key + source: public/ + target: ~/codes + delete: false # Remove remote files not present on client side + + - name: notify + image: drillster/drone-email + settings: + host: irsamc.ups-tlse.fr + from: drone@irssv7.ups-tlse.fr + recipients: lcpq-dsasce@irsamc.ups-tlse.fr + subject: www-lcpq-codes build + attachment: build-result.xml + when: + status: [changed, failure] + +trigger: + branch: + - main + event: + - push