summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <marcia@gitlab.com>2019-02-11 17:48:32 +0000
committerMarcia Ramos <marcia@gitlab.com>2019-02-11 17:48:32 +0000
commit6328af4e126588ccd383713287a74981400ba650 (patch)
tree44d906776cda762220d07f79a04270455bc2cdfd
parent8548c3c98a10c21effd5f7b715bafbef3c4a9e4d (diff)
parentd50acd1cc6e0942ad8c29279e0d8a7615b05813e (diff)
downloadgitlab-ce-6328af4e126588ccd383713287a74981400ba650.tar.gz
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
-rw-r--r--doc/user/project/pages/introduction.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/user/project/pages/introduction.md b/doc/user/project/pages/introduction.md
index cebff38ba88..fa65a206273 100644
--- a/doc/user/project/pages/introduction.md
+++ b/doc/user/project/pages/introduction.md
@@ -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