From d79088a9a267754062396fe050d3b53522fdd454 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 3 Sep 2020 12:20:10 +0200 Subject: [PATCH] Add drone CI --- .drone.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e7881bb --- /dev/null +++ b/.drone.yml @@ -0,0 +1,37 @@ +--- +kind: pipeline +type: docker +name: default + +platform: + os: linux + arch: arm64 + +steps: + - name: build + image: plugins/hugo + settings: + hugo_version: 0.70.0 + validate: true + + - name: deploy + image: appleboy/drone-scp + settings: + debug: true + tar_tmp_path: /tmp/ + host: www.happydns.org + target: /var/www/happydns.org/htdocs + source: public/* + strip_components: 1 + username: + from_secret: ssh_username + key: + from_secret: deploy_key + port: + from_secret: ssh_port + when: + branch: + - master + event: + exclude: + - pull_request