aboutgitcodebugslistschat
path: root/hooks
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-02-23 13:28:26 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-02-23 13:28:26 +0100
commite221ca761394b1431b1ca8c66ae83744dc629006 (patch)
tree31d630d5b6ef5f5b701e3ca20c5fa4f44094127e /hooks
parent03f7eb945b03b28b6d2dc3cee4c6558f601879f0 (diff)
downloadpasst-e221ca761394b1431b1ca8c66ae83744dc629006.tar
passt-e221ca761394b1431b1ca8c66ae83744dc629006.tar.gz
passt-e221ca761394b1431b1ca8c66ae83744dc629006.tar.bz2
passt-e221ca761394b1431b1ca8c66ae83744dc629006.tar.lz
passt-e221ca761394b1431b1ca8c66ae83744dc629006.tar.xz
passt-e221ca761394b1431b1ca8c66ae83744dc629006.tar.zst
passt-e221ca761394b1431b1ca8c66ae83744dc629006.zip
hooks: Uploaded compressed .cast files too
...to benefit from gzip_static in nginx or equivalent. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-push9
1 files changed, 6 insertions, 3 deletions
diff --git a/hooks/pre-push b/hooks/pre-push
index 0246776..69bbd18 100755
--- a/hooks/pre-push
+++ b/hooks/pre-push
@@ -34,12 +34,15 @@ ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
cd test
./ci
-scp ci.cast perf.js ci.js ../doc/*.png "${USER_HOST}:${WEB}/"
+scp perf.js ci.js ../doc/*.png "${USER_HOST}:${WEB}/"
scp test_logs/* "${USER_HOST}:${TEST}/"
./run_demo
-scp demo_pasta.cast demo_podman.cast "${USER_HOST}:${WEB}/"
-scp demo_passt.cast "${USER_HOST}:${WEB}/"
+
+for cast in ci demo_pasta demo_podman demo_passt; do
+ gzip -9 "${cast}.cast"
+ scp "${cast}.cast"{,.gz} "${USER_HOST}:${WEB}/"
+done
cd ..