August 2019
Beginner
608 pages
16h 7m
English
You can set which path is to be cached in the .gitlab-ci.yml file for the project itself:
cache: paths: - node_modules/
The preceding settings apply to the context of just a single Runner host. If we use autoscaling, we need a way to have this cache shared by all of the runners to help gain speed. We can use external storage such as an S3 bucket to act as a cache. We just have to add the [runners.cache.s3] part to the config.toml file of the runners:
[runners.cache.s3] ServerAddress = "s3-website-us-east-1.amazonaws.com" BucketName = "joustie-gitlab-runner-cache" AccessKey = "xxx" SecretKey= "xxxx" Insecure = false
If this is your first time doing this, it will try to get the cache.zip file from the ...
Read now
Unlock full access