This commit is contained in:
parent
691c503c95
commit
97cf4c8073
@ -30,7 +30,7 @@ steps:
|
|||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
image: alpine:3.9
|
image: alpine:3.9
|
||||||
commands:
|
commands:
|
||||||
- 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 %'
|
- find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML|gpx)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
|
||||||
|
|
||||||
- name: housekeep
|
- name: housekeep
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
@ -88,7 +88,7 @@ steps:
|
|||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
image: alpine:3.9
|
image: alpine:3.9
|
||||||
commands:
|
commands:
|
||||||
- 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 %'
|
- find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML|gpx)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
|
||||||
|
|
||||||
- name: housekeep
|
- name: housekeep
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user