diff --git a/.drone.yml b/.drone.yml index dc420b5..3807f5e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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