this should be on dev but whatever
continuous-integration/drone/push Build encountered an error Details

drafts
Nick Dumas 5 months ago
parent d43d60f28e
commit 3820d02ea5

@ -6,33 +6,11 @@ clone:
depth: 1 depth: 1
steps: steps:
- name: hugo_prod - name: hugo
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com - ./build.sh ${{DRONE_BRANCH}}
when:
branch:
include:
- main
- name: hugo_dev
image: code.ndumas.com/ndumas/hugo
commands:
- 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 - name: publish_prod
depends_on:
- hugo_prod
image: drillster/drone-rsync image: drillster/drone-rsync
settings: settings:
key: key:
@ -49,8 +27,6 @@ steps:
include: include:
- main - main
- name: publish_dev - name: publish_dev
depends_on:
- hugo_dev
image: drillster/drone-rsync image: drillster/drone-rsync
settings: settings:
key: key:
@ -67,8 +43,6 @@ steps:
include: include:
- dev - dev
- name: publish_drafts - name: publish_drafts
depends_on:
- hugo_drafts
image: drillster/drone-rsync image: drillster/drone-rsync
settings: settings:
key: key:

@ -0,0 +1,13 @@
#! /bin/bash
case $1 in
main)
hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com
;;
dev)
hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com
;;
drafts)
hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
;;
esac
Loading…
Cancel
Save