From 096a834af3bf5c61e944e2bc94ded4afbda9816a Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Sat, 25 Mar 2023 01:08:02 +0000 Subject: [PATCH] Fix compression of the dev deployment (#3693) Closes https://github.com/pyodide/pyodide/issues/3687 I forgot to make the changes for the dev deployment in https://github.com/pyodide/pyodide/pull/3667 Overall those are mostly identical lines repeated several times, however because the cost of error is pretty high I prefer not to factorize it for now. Instead, we should rethink this system, maybe moving dev deployment to a separate bucket and making release deployment immutable. --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b9f2db29f..1134a57d1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -517,7 +517,7 @@ jobs: command: | find dist/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;" aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/full/" - aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache + aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*.zip' --exclude '*.whl' --exclude "*.tar" --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache - run: name: Deploy debug version to pyodide-cdn2.iodide.io @@ -525,7 +525,7 @@ jobs: find dist-debug/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;" aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/debug/" aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache - aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache + aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*' --include '*.zip' --include "*.whl" --include "*.tar" --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache workflows: version: 2