|
|
@ -9,7 +9,7 @@ steps:
|
|
|
|
- name: hugo_prod
|
|
|
|
- name: hugo_prod
|
|
|
|
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
|
|
|
|
- ./build.sh main
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
include:
|
|
|
@ -20,7 +20,7 @@ steps:
|
|
|
|
- name: hugo_dev
|
|
|
|
- name: hugo_dev
|
|
|
|
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
|
|
|
|
- ./build.sh dev
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
include:
|
|
|
@ -31,8 +31,7 @@ steps:
|
|
|
|
- name: hugo_drafts
|
|
|
|
- name: hugo_drafts
|
|
|
|
image: code.ndumas.com/ndumas/hugo
|
|
|
|
image: code.ndumas.com/ndumas/hugo
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- ls -lah $HUGO_CACHEDIR/
|
|
|
|
- ./build.sh drafts
|
|
|
|
- hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
|
|
|
|
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
include:
|
|
|
|