I'm finally seeing the light
continuous-integration/drone/push Build is failing Details

drafts
Nick Dumas 5 months ago
parent a473f845a7
commit 678a99879c

@ -6,18 +6,7 @@ clone:
depth: 1 depth: 1
steps: steps:
- name: restore_cache
image: drillster/drone-volume-cache
volumes:
- name: go_module_cache
path: /var/cache/go/hugo_cache/
settings:
restore: true
mount:
- /drone/src/hugo_cache/
- name: hugo_prod - name: hugo_prod
depends_on:
- restore_cache
image: code.ndumas.com/ndumas/hugo:latest image: code.ndumas.com/ndumas/hugo:latest
commands: commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com
@ -25,9 +14,10 @@ steps:
branch: branch:
include: include:
- main - main
volumes:
- name: go_module_cache
path: /tmp/hugo_cache/
- name: hugo_dev - name: hugo_dev
depends_on:
- restore_cache
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com
@ -35,9 +25,10 @@ steps:
branch: branch:
include: include:
- dev - dev
volumes:
- name: go_module_cache
path: /tmp/hugo_cache/
- name: hugo_drafts - name: hugo_drafts
depends_on:
- restore_cache
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com - hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
@ -45,6 +36,9 @@ steps:
branch: branch:
include: include:
- drafts - drafts
volumes:
- name: go_module_cache
path: /tmp/hugo_cache/
- name: publish_prod - name: publish_prod
depends_on: depends_on:
- hugo_prod - hugo_prod
@ -99,19 +93,6 @@ steps:
branch: branch:
include: include:
- drafts - drafts
- name: rebuild_cache
depends_on:
- publish_prod
- publish_dev
- publish_drafts
image: drillster/drone-volume-cache
volumes:
- name: go_module_cache
path: /var/cache/go/hugo_cache/
settings:
rebuild: true
mount:
- /drone/src/hugo_cache/
volumes: volumes:
- name: go_module_cache - name: go_module_cache
host: host:

@ -1,6 +1,6 @@
#! /bin/bash #! /bin/bash
export HUGO_CACHEDIR="/drone/src/hugo_cache/" export HUGO_CACHEDIR="/tmp/hugo_cache/"
# debug alias # debug alias
# alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints # alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints

Loading…
Cancel
Save