我正在使用gitlab runner在数字海洋服务器上运行测试。我想缓存宝石,这样它就不会从零开始为每次构建安装gems。我的gitlab-ci.yml中的缓存部分如下所示:
[runners.cache]
Type = "s3"
ServerAddress = "ams3.digitaloceanspaces.com"
AccessKey = "KEY"
SecretKey = "SECRET"
BucketName = "cache-for-builds"
Insecure = true当构建完成,运行程序试图创建缓存时,我看到

我试图恢复数字海洋空间的密钥和秘密,但这没有帮助

另外,我的私人gitlab runner bastion服务器上没有安装任何证书。
数字海洋UI中的缓存空间如下所示:

我做错什么了?我怎样才能纠正故宫的错误呢?如何调试此错误?
发布于 2019-01-21 19:49:36
似乎我对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"https://stackoverflow.com/questions/53702818
复制相似问题