gitlab 使用青云 qingstor 对象存储作为存储

使用 s3 compatible 模式, 腾讯云、阿里云、华为云、青云 都可以实现。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21

# https://docs.gitlab.com/ce/administration/job_artifacts.html

gitlab_rails['artifacts_enabled'] = true
gitlab_rails['artifacts_object_store_enabled'] = true
gitlab_rails['artifacts_object_store_remote_directory'] = "gitlab-storage-artifacts"
gitlab_rails['artifacts_object_store_connection'] = {

# s3v4 compatible mode
# https://gitlab.com/gitlab-org/charts/gitlab/-/blob/master/examples/objectstorage/rails.minio.yaml

  'provider' => 'AWS',
  'region' => 'us-east-1',
  'aws_access_key_id' => 'ACID_XXXXXXXXXXXXXXXXX',
  'aws_secret_access_key' => 'ACKEY_YYYYYYYYYYYYYYYY',
  'aws_signature_version' => 4,
  'host' => 's3.pek3b.qingstor.com',
  'endpoint' => "http://s3.pek3b.qingstor.com",
  'path_style' => true

}