Commit 6328af4e authored by Marcia Ramos's avatar Marcia Ramos

Merge branch 'docs/pages-compress' into 'master'

Change find flags to also work with Alpine

Closes #57341

See merge request gitlab-org/gitlab-ce!25104
parents 8548c3c9 d50acd1c
......@@ -348,8 +348,8 @@ This can be achieved by including a `script:` command like this in your
pages:
# Other directives
script:
- # build the public/ directory first
- find public -type f -iregex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -execdir gzip -f --keep {} \;
# Build the public/ directory first
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
```
By pre-compressing the files and including both versions in the artifact, Pages
......
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