From 4a8c666eee805cc64e3754769ba93aaf13515819 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Wed, 3 Jul 2024 10:17:52 -0400 Subject: [PATCH] A few problems --- .drone.yml | 30 ++++++++++++++++++++++++++++-- build.sh | 0 2 files changed, 28 insertions(+), 2 deletions(-) mode change 100644 => 100755 build.sh diff --git a/.drone.yml b/.drone.yml index a674228..0c51660 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,11 +6,33 @@ clone: depth: 1 steps: -- name: hugo +- name: hugo_prod + image: code.ndumas.com/ndumas/hugo:latest + commands: + - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com + when: + branch: + include: + - main +- name: hugo_dev image: code.ndumas.com/ndumas/hugo commands: - - ./build.sh $DRONE_BRANCH + - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com + when: + branch: + include: + - dev +- name: hugo_drafts + image: code.ndumas.com/ndumas/hugo + commands: + - hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com + when: + branch: + include: + - drafts - name: publish_prod + depends_on: + - hugo_prod image: drillster/drone-rsync settings: key: @@ -27,6 +49,8 @@ steps: include: - main - name: publish_dev + depends_on: + - hugo_dev image: drillster/drone-rsync settings: key: @@ -43,6 +67,8 @@ steps: include: - dev - name: publish_drafts + depends_on: + - hugo_drafts image: drillster/drone-rsync settings: key: diff --git a/build.sh b/build.sh old mode 100644 new mode 100755