cache – paths

This is an array of paths to files and/or directories that should be cached. You can also use the asterisk wildcard character (*). This is demonstrated in the following code snippet:

build:  cache:  paths:    - binaries/*.apk    - .config

In the preceding example, we cache the .config file as well as any .apk files in the binaries directory.

Get GitLab Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.