Execute hugo command.
This commit is contained in:
parent
881b831291
commit
47535fb096
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue