Extend cache syntax in .gitlab-ci.yml to use exclude

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Instead of caching the whole ../node_modules/.next directory (for example), we want to cache everything in there except a few file/directories. Instead of adding the files/directories in that path one by one (impossible to do). It would be nice to exclude what we don't want cached.

Proposal

Stub issue for gitlab-runner!2105 (comment 345128549). Extend cache syntax in .gitlab-ci.yml to use exclude.

Edited by 🤖 GitLab Bot 🤖