Execute hugo command.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-05 20:20:51 +08:00
parent 881b831291
commit 47535fb096
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,14 @@ steps:
- grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g" - grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
- grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/ / www.amazon.co.jp\/exec/https:\/ / www.amazon.co.jp\/exec/g" - grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/ / www.amazon.co.jp\/exec/https:\/ / www.amazon.co.jp\/exec/g"
- name: hugo
image: cibuilds/hugo:0.62.1
commands: |
if [ "${DRONE_BRANCH}" != "master" ]; then
hugo -e staging -v -s
else
hugo -e production -v -s
fi
trigger: trigger:
event: event:
- push - push