Add cache configuration

MSAL

Add cache configuration to .gitlab-ci.yml for faster builds.

org.openrewrite.gitlab.AddCache

Required

The cache key expression.

Paths to cache. Separate values with commas.

Optional

The cache policy.

The job to add cache to. If not provided, applies to the default section.

acceptTheirsBoolean

When the setting already exists, prefer the original value.

mod run . --recipe=org.openrewrite.gitlab.AddCache \ -P key='$CI_COMMIT_REF_SLUG' \ -P paths=.cache/,vendor/

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.