gzip `.html` during ci processes.

This commit is contained in:
Kazuhiro MUSASHI 2020-05-01 00:09:37 +09:00
parent b94045fae6
commit 3478c90104
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ steps:
image: alpine:3.9 image: alpine:3.9
commands: 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 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 - name: housekeep
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -72,7 +72,7 @@ steps:
image: alpine:3.9 image: alpine:3.9
commands: 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 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 - name: housekeep
image: appleboy/drone-ssh image: appleboy/drone-ssh