gitlab-runner缓存文件大小每次都加倍

时间:2019-06-05 06:21:06

标签: gitlab gitlab-ci gitlab-ci-runner

我正在为gitlab运行程序使用分布式缓存(S3)。它工作正常,但是每次跑步者执行作业并将缓存文件存储在S3中时,文件大小都会增加一倍。它在新的缓存文件中包括了较旧的cache.zip文件。

gitlab-ci.yml 文件:

cache:
  key: "$CI_COMMIT_REF_NAME"
  untracked: true
  paths:
    - .m2/repository/

运行程序缓存配置文件 config.toml

  [runners.cache]                              
    Type = "s3"                                
    Path = "runners-cache"                     
    [runners.cache.s3]                                      
      ServerAddress = "s3.amazonaws.com"                    
      AccessKey = "***"                    
      SecretKey = "***"
      BucketName = "***"                     
      BucketLocation = "***"    

0 个答案:

没有答案
相关问题