【问题标题】:Distributed runners cache Gitlab Runner Path = path/to/prefix分布式运行器缓存 Gitlab Runner Path = path/to/prefix
【发布时间】:2021-11-19 11:34:24
【问题描述】:

阅读有关 distributed runners cache 的文档,我想知道 config.toml 中的变量“Path”是做什么的。

 [runners.cache]
    Type = "s3"
    **Path = "path/to/prefix"**
    Shared = false

这只是更改 S3 url http(s)://ServerAddress/BucketName/Path/runner/runner-id/project/id/cache-key 吗?

如果是这样,当我更改/添加路径变量时会产生什么后果?您将在何时以及如何使用它?

【问题讨论】:

    标签: caching gitlab runner


    【解决方案1】:

    当连接到 S3 http(s)://<ServerAddress>/<BucketName>/<Path>/runner/<runner-id>/project/<id>/<cache-key> 时,配置中的 Path 会像这样结束,其中 <Path> 是您在配置中输入的内容。您可以在问题中链接的文档页面中看到这一点,就在黑色背景的配置示例下方。

    【讨论】:

      猜你喜欢
      • 2022-01-20
      • 2012-07-25
      • 1970-01-01
      • 1970-01-01
      • 2020-01-01
      • 2023-03-17
      • 2014-09-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多