在 GitLab 16.0 中,引入了一个新的 Runner 创建工作流,该工作流使用runner authentication tokens
来注册Runner。使用registration tokens
的传统工作流已被弃用,迁移文档
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| image: registry: <HARBOR_REGISTRY> image: <IMAGE>
gitlabUrl: <GITLAB_URL>
runnerToken: "<REGISTRATION_TOKEN>"
rdbc: create: true
serviceAccounts: create: true
runners: config: [[runners]] [runners.kubernetes] namespace = "{{.Release.Namespace}}" image = "alpine" helper_image = <IMAGE> [runners.kubernetes.node_selector] 'kubernetes.io/hostname' = 'node1' [runners.cache] Type = "s3" Path = "gitlab-runner" Shared = true [runners.cache.s3] ServerAddress = <MINIO_URL> AccessKey = <MINIO_ACCESS_KEY> SecretKey = <MINIO_SECRET_KEY> BucketName = "runner-cache"
|