Add compress step to Drone
This commit is contained in:
parent
fb814417ea
commit
996955eb46
|
@ -22,6 +22,11 @@ steps:
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --minify
|
- hugo --minify
|
||||||
|
|
||||||
|
- name: compress
|
||||||
|
image: alpine:latest
|
||||||
|
commands:
|
||||||
|
- ./compress.sh
|
||||||
|
|
||||||
- name: upload
|
- name: upload
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
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