-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
We clear the composer cache when we build the CLI container, but this is a lost opportunity. Most of the packages we use are fixed since our versions don't change often, so leaving the composer cache in place means subsequent builds downstream could speed up a lot by not needing to download all the sources - and we have a lot of sources. I propose we leave the composer cache in place here.
Something to be aware of is the main impact is on PaaS currently, but improvements in the way SaaS works may more and more require composer install, in order to follow mainstream best practices.
An alternative approach is to use gitlab CI cache, which might look like this (internal ref GOVCMS-3110).
cache:
key: "$CI_PROJECT_PATH_SLUG"
paths:
- /home/.composer/cache
Metadata
Metadata
Assignees
Labels
No labels