From f349d21677f90b60e7002487f0865cd981905b3c Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 16 Feb 2020 23:08:57 +0800 Subject: [PATCH] Modify production part as well. --- .drone.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index d94cc39..3807f5e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ name: production steps: - name: Modify-Amazon-Links - image: cibuilds/hugo:0.64.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" @@ -12,10 +12,10 @@ steps: - name: hugo image: cibuilds/hugo:0.64.1 commands: - - hugo --cacheDir /tmp -e staging -v -s . + - sudo hugo -e production -v -s . - name: Compress-the-Assets - image: cibuilds/hugo:0.64.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,7 +58,6 @@ name: staging steps: - name: Modify-Amazon-Links - user: root 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"