From 3478c9010495855cc0bb8e151cfe07412614404a Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Fri, 1 May 2020 00:09:37 +0900 Subject: [PATCH] gzip `.html` during ci processes. --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 140630f..d5c7a12 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,7 @@ steps: 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 + - for TARGET in `find public/ -type f | egrep "\.(html|HTML)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done - name: housekeep image: appleboy/drone-ssh @@ -72,7 +72,7 @@ steps: 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 + - for TARGET in `find public/ -type f | egrep "\.(html|HTML)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done - name: housekeep image: appleboy/drone-ssh