blog/.drone.yml

23 lines
716 B
YAML
Raw Normal View History

2020-01-05 11:59:08 +00:00
kind: pipeline
type: docker
name: default
steps:
2020-01-05 12:18:51 +00:00
- name: Modify-Amazon-Links
2020-01-05 11:59:08 +00:00
image: cibuilds/hugo:0.62.1
commands:
2020-01-05 12:19:29 +00:00
- 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"
2020-01-05 11:59:08 +00:00
- 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"
2020-01-05 12:20:51 +00:00
- 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
2020-01-05 11:59:08 +00:00
trigger:
event:
- push