Add compress step to Drone
This commit is contained in:
parent
fb814417ea
commit
996955eb46
|
@ -22,6 +22,11 @@ steps:
|
|||
- hugo version
|
||||
- hugo --minify
|
||||
|
||||
- name: compress
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- ./compress.sh
|
||||
|
||||
- name: upload
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
for f in $(find public/ -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js"); do
|
||||
echo "Compressing $f..."
|
||||
gzip -nk $f
|
||||
done
|
Loading…
Reference in New Issue