Commit 2873e98c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'compress-gitlab-pages' into 'master'

Compress all Pages assets in CI

See merge request gitlab-org/gitlab!65109
parents b4e5af57 1f2db754
.compress-public: &compress-public
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|json\|css\|svg\|xml\)$' -exec gzip -f -k {} \;
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|json\|css\|svg\|xml\)$' -exec brotli -f -k {} \;
pages:
extends:
- .default-retry
......@@ -9,6 +13,8 @@ pages:
- karma
- compile-production-assets
- compile-storybook
before_script:
- apt-get update && apt-get -y install brotli gzip
script:
- mv public/ .public/
- mkdir public/
......@@ -17,7 +23,7 @@ pages:
- mv coverage-javascript/ public/coverage-javascript/ || true
- mv storybook/public public/storybook || true
- cp .public/assets/application-*.css public/application.css || true
- cp .public/assets/application-*.css.gz public/application.css.gz || true
- *compress-public
artifacts:
paths:
- public
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment