Skip to content

Gitlab Pages Brotli Compression not Working

Summary

Documented steps to use brotli compression on gitlab pages not working

Steps to reproduce

https://docs.gitlab.com/ee/user/project/pages/introduction.html

Added brotli step to a pages script per the above

Example Project

Example project and gitlab CI can be found below

https://gitlab.com/tasbot/runs.tas.bot

What is the current bug behavior?

brotli assets are not created with the described steps

What is the expected correct behavior?

the brotli library is found and compresses the static assets

Relevant logs and/or screenshots

running on docker image node:latest

$ find public -type f -regex '.*.(htm|html|txt|text|js|css)$' -exec brotli -9 -f -k {} ;

find: 'brotli': No such file or directory

Edited by TiKevin83