FATAL: Received: 403 Forbidden when creating cache on Digital ocean with private gitlab 亚军

FATAL: Received: 403 Forbidden when creating cache on Digital ocean with private gitlab runner

我正在 运行 使用 gitlab runner 在数字海洋服务器上进行测试。我想缓存宝石,这样它就不会为每个构建从头开始安装宝石。我的 gitlab-ci.yml 中的缓存部分如下所示:

[runners.cache]
    Type = "s3"
    ServerAddress = "ams3.digitaloceanspaces.com"
    AccessKey = "KEY"
    SecretKey = "SECRET"
    BucketName = "cache-for-builds"
    Insecure = true

当构建完成并且运行程序尝试创建缓存时,我看到

我尝试重新生成 Digital Ocean Spaces 密钥和机密,但没有帮助

我的私人 gitlab runner bastion 服务器上也没有安装任何证书

Digital Ocean UI 中的缓存 space 如下所示:

我做错了什么? 如何修复禁止错误? 我该如何调试这个错误?

似乎我在 gitlab runner 版本 11.5.1 的缓存部分使用了过时的配置格式。正确的配置格式为:

# /etc/gitlab-runner/config.toml
[[runners]]
 ...
  [runners.cache]
    Type = "s3"
    Path = "cache_for_builds"
    [runners.cache.s3]
      ServerAddress = "ams3.digitaloceanspaces.com"
      AccessKey = "<key>"
      SecretKey = "<secret>"
      BucketName = "cache-for-builds"
      BucketLocation = "ams3"