From aa875beb3a3bb777490f81d8221ed5e03192ab43 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Mon, 24 Jun 2024 16:15:35 -0400 Subject: [PATCH] Working on drafts and dev versions of the site --- .drone.yml | 84 +++++++++++++++++++++++++++++++ layouts/partials/extend-head.html | 1 + 2 files changed, 85 insertions(+) create mode 100644 .drone.yml create mode 100644 layouts/partials/extend-head.html diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b2128bc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,84 @@ +kind: pipeline +name: blog + +clone: + depth: 1 + +steps: +- name: hugo + image: code.ndumas.com/ndumas/hugo + commands: + - hugo -d /drone/src/public/ --baseUrl https://blog.ndumas.com +- name: publish + depends_on: + - hugo + image: drillster/drone-rsync + settings: + key: + from_secret: BLOG_DEPLOY_KEY + user: blog + delete: true + recursive: true + hosts: ["blog.ndumas.com"] + source: /drone/src/public/ + target: /var/www/blog.ndumas.com/ + include: ["*"] +branches: +- main +--- +kind: pipeline +name: dev + +clone: + depth: 1 + +steps: +- name: hugo + image: code.ndumas.com/ndumas/hugo + commands: + - hugo -d /drone/src/public/ --baseUrl https://dev.blog.ndumas.com +- name: publish + depends_on: + - hugo + image: drillster/drone-rsync + settings: + key: + from_secret: BLOG_DEPLOY_KEY + user: blog + delete: true + recursive: true + hosts: ["blog.ndumas.com"] + source: /drone/src/public/ + target: /var/www/dev.blog.ndumas.com/ + include: ["*"] +branches: +- dev +--- +kind: pipeline +name: drafts + +clone: + depth: 1 + +steps: +- name: hugo + image: code.ndumas.com/ndumas/hugo + commands: + - hugo -DF -d /drone/src/public/ --baseUrl https://drafts.blog.ndumas.com +- name: publish + depends_on: + - hugo + image: drillster/drone-rsync + settings: + key: + from_secret: BLOG_DEPLOY_KEY + user: blog + delete: true + recursive: true + hosts: ["blog.ndumas.com"] + source: /drone/src/public/ + target: /var/www/drone.blog.ndumas.com/ + include: ["*"] +branches: +- dev +--- diff --git a/layouts/partials/extend-head.html b/layouts/partials/extend-head.html new file mode 100644 index 0000000..9c5a62a --- /dev/null +++ b/layouts/partials/extend-head.html @@ -0,0 +1 @@ +