From 02d1354e4c30f5bb69d0b82e5b2caf604bc8a896 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Jul 2020 00:44:59 +0200 Subject: [PATCH] drone: add CI/CD --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d0d80ee --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +kind: pipeline +name: default + +clone: + disable: true + + +steps: + - name: clone + image: plugins/git + recursive: true + + - name: build + image: klakegg/hugo + commands: + - hugo version + - hugo --destination /drone/src/build --minify + + - name: deploy + image: appleboy/drone-scp + settings: + source: /drone/src/build/* + strip_components: 3 # Make sure the tarball doesn't contain leading path + rm: true # Make sure only the newly generated files are left + host: + from_secret: ssh_host + target: + from_secret: ssh_target + username: + from_secret: ssh_user + key: + from_secret: ssh_key + port: + from_secret: ssh_port + when: + branch: + - master + event: + exclude: + - pull_request