Merge branch 'gzip-html-during-ci' of kazu634/blog into master
This commit is contained in:
commit
029c98cc86
|
@ -17,8 +17,7 @@ steps:
|
||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
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
|
- find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
|
||||||
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm -f ${TARGET}; done
|
|
||||||
|
|
||||||
- name: housekeep
|
- name: housekeep
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
@ -71,8 +70,7 @@ steps:
|
||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
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
|
- find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
|
||||||
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm -f ${TARGET}; done
|
|
||||||
|
|
||||||
- name: housekeep
|
- name: housekeep
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|
Loading…
Reference in New Issue