From 6dfd19770be7bd1a9fc2296817a5a809629691ee Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 24 Jul 2021 00:11:27 +0200 Subject: [PATCH] Add CI/CD --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ad3e4a4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: fetch submodules + image: alpine + commands: + - apk add --no-cache git + - git submodule init + - git submodule update --recursive --remote + + - name: build + image: plugins/hugo + settings: + hugo_version: 0.85.0 + validate: true + + - name: deploy + image: appleboy/drone-scp + settings: + tar_tmp_path: /tmp/ + host: www.nemunai.re + target: /var/www/nemunai.re/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