Prevent early exit from compress images script
What does this MR do and why?
Adjusts logic in compress-images.sh so that it doesn't exit with an error if it has an issue with a single image.
This is hopefully going to fix the failed 16.0 pipeline, see technical-writing#1065 (comment 2011655198).
Screenshots, screen recordings, or links to review app
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md. -
Run make compile
to compile the site -
Run the compress script: ./scripts/compress_images.sh public
Even if the script encounters an error on a single image, it will continue and exit 0.
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Sarah German