From f3b80f59fbe5d5009c1d11c455981ec97cd8a147 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Mon, 22 May 2023 22:15:53 -0400 Subject: [PATCH] first draft of the pipeline --- .drone.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..538a41e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +kind: pipeline +name: update-blog + +clone: + depth: 1 + +steps: +- name: build + image: code.ndumas.com/ndumas/drone-hugo:latest + commands: + - cd /tmp/blog + - hugo version + - hugo --enableGitInfo --minify +- name: publish + image: drillster/drone-rsync + settings: + key: + from_secret: BLOG_DEPLOY_KEY + user: blog + delete: true + recursive: true + hosts: ["hugo-demo.ndumas.com"] + source: public/ + target: /var/www/hugo-demo.ndumas.com/ + include: ["*"]