v -short Availability of the cacheĬaching is an optimization, but it isn’t guaranteed to always work. go/pkg/mod/ test : image : golang:1.13 extends. go-cache : variables : GOPATH : $CI_PROJECT_DIR/.go before_script : - mkdir -p. This directory should use NFS or something similar. Share a common network-mounted directory to store the cache.
Different projects cannot share the cache.Subsequent jobs in the same pipeline can use the cache, if the dependencies are identical.Subsequent pipelines can use the cache.Define cache per job by using the cache keyword.
Use artifacts to pass intermediate build results between stages.Īrtifacts are generated by a job, stored in GitLab, and can be downloaded.īoth artifacts and caches define their paths relative to the project directory, and Use cache for dependencies, like packages you download from the internet.Ĭache is stored where GitLab Runner is installed and uploaded to S3 if To learn how to define the cache in your. The same cache don’t have to download the files again, so they execute more quickly.