Merge branch 'bump-hugo-image' of kazu634/blog into master

This commit is contained in:
Kazuhiro MUSASHI 2020-02-17 00:13:24 +09:00 committed by Gitea
commit cc9cf3bcf4
1 changed files with 8 additions and 8 deletions

View File

@ -4,18 +4,18 @@ name: production
steps:
- name: Modify-Amazon-Links
image: cibuilds/hugo:0.62.1
image: alpine:3.9
commands:
- 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"
- name: hugo
image: cibuilds/hugo:0.62.1
image: cibuilds/hugo:0.64.1
commands:
- hugo -e production -v -s .
- sudo hugo -e production -v -s .
- name: Compress-the-Assets
image: cibuilds/hugo:0.62.1
image: alpine:3.9
commands:
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm -f ${TARGET}; done
@ -58,18 +58,18 @@ name: staging
steps:
- name: Modify-Amazon-Links
image: cibuilds/hugo:0.62.1
image: alpine:3.9
commands:
- 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"
- name: hugo
image: cibuilds/hugo:0.62.1
image: cibuilds/hugo:0.64.1
commands:
- hugo -e staging -v -s .
- sudo hugo -e staging -v -s .
- name: Compress-the-Assets
image: cibuilds/hugo:0.62.1
image: alpine:3.9
commands:
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm -f ${TARGET}; done