diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-02 13:17:14 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-02 14:02:03 +0100 |
commit | 216a266a757399765e8c756b34d679d4f7135b68 (patch) | |
tree | 5583982f761ed770a42473d7220ba40557b097b8 /hooks/pre-push | |
parent | bec6d3e084cdefff6ab8e86e9ae3f3f77b301ff0 (diff) | |
download | passt-216a266a757399765e8c756b34d679d4f7135b68.tar passt-216a266a757399765e8c756b34d679d4f7135b68.tar.gz passt-216a266a757399765e8c756b34d679d4f7135b68.tar.bz2 passt-216a266a757399765e8c756b34d679d4f7135b68.tar.lz passt-216a266a757399765e8c756b34d679d4f7135b68.tar.xz passt-216a266a757399765e8c756b34d679d4f7135b68.tar.zst passt-216a266a757399765e8c756b34d679d4f7135b68.zip |
hooks, README: gzipped js snippets, webp alternatives for png
Upload gzipped js snippets for usage with gzip_static in nginx or
equivalent. Convert png drawings to webp for smaller size, use them
as alternatives in README.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'hooks/pre-push')
-rwxr-xr-x | hooks/pre-push | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hooks/pre-push b/hooks/pre-push index b75fe4b..73dac94 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -34,9 +34,9 @@ ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}" cd test ./ci -scp perf.js ci.js ../doc/*.png "${USER_HOST}:${WEB}/" +gzip -fk9 perf.js ci.js +scp perf.js perf.js.gz ci.js ci.js.gz "${USER_HOST}:${WEB}/" scp test_logs/* "${USER_HOST}:${TEST}/" - ./run_demo for cast in ci demo_pasta demo_podman demo_passt; do @@ -58,6 +58,11 @@ scp *.deb *.rpm "${USER_HOST}:${BIN}/" man2html -M "/" passt.1 > passt.1.html scp passt.1.html "${USER_HOST}:${WEB}/" +for pic in passt_overview pasta_overview; do + cwebp -preset drawing -q 10 "doc/${pic}.png" -o "doc/${pic}.webp" + scp "doc/${pic}.png" "doc/${pic}.png" "${USER_HOST}:${WEB}/" +done + ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}" ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}" ssh "${USER_HOST}" "rm -rf ${AWAY}" |