[runners.kubernetes]namespace="{{.Release.Namespace}}"image="ubuntu:16.04"tags:"k8s-runner,k8s" # 为Runner定义了标签,使其更容易被识别和管理privileged:true # 这表示Runner将以特权模式运行,可以访问主机上的所有设备和服务cacheType: s3 # 指定了缓存类型为S3 cachePath:"bucket" # 指定了S3缓存的路径...
在runner 里的 /home/gitlab-runner 下有个 cache 目录,里面就是我们的缓存,我的这个项目使用的缓存是在如下目录里面 /home/gitlab-runner/cache/root/lrunweb/default-protected 接下来我们删除缓存之后在运行一次 root@c5249d1c22f7:/home/gitlab-runner/cache/root/lrunweb/default-protected# rm cache.zip ...
配置GitLab Runner 找到GitLab Runner 的配置文件config.toml。找到要使用的runner。配置runners.cache 配置块 [runners.cache] Type = "s3" Path = "prefix" Shared = false [runners.cache.s3] ServerAddress = "172.17.0.4:9000" AccessKey = "12345678" SecretKey = "87654321" BucketName = "fizz-minio"...
1. 服务器安装gitlab-runner 先确认服务器环境信息之后找到对应的gitlab-runner安装包 使用uname -a查看服务器版本信息 在此处找到符合自己版本信息的安装包 使用安装包安装gitlab-runner程序;如果提示sudo: curl:找不到命令, 则使用yum安装curl后重新安装程序yum update -y && yum install curl -y,(因为安装curl...
官方的runner 配置 examples是这样配置的,指定S3存储相关信息。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 limit=10executor="docker+machine"[runners.cache]Type="s3"Path="path/to/prefix"Shared=false[runners.cache.s3]ServerAddress="s3.example.com"AccessKey="access-key"SecretKey="secret-key"Bu...
mv gitlab-runner-linux-amd64 /usr/local/bin/gitlab-runner chmod +x /usr/local/bin/gitlab-runner 1. 2. 3. 添加用户 useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash 1. 安装启动服务 gitlab-runner install --user=gitlab-runner --working-directory=/home...
在runner 里的 /home/gitlab-runner 下有个 cache 目录,里面就是我们的缓存,我的这个项目使用的缓存是在如下目录里面 /home/gitlab-runner/cache/root/lrunweb/default-protected 接下来我们删除缓存之后在运行一次 root@c5249d1c22f7:/home/gitlab-runner/cache/root/lrunweb/default-protected# rm cache.zip...
配置GitLab Runner 找到GitLab Runner 的配置文件config.toml。找到要使用的runner。配置runners.cache 配置块 代码语言:javascript 代码运行次数:0 运行 AI代码解释 [runners.cache]Type="s3"Path="prefix"Shared=false[runners.cache.s3]ServerAddress="172.17.0.4:9000"AccessKey="12345678"SecretKey="87654321"Bucket...
gitlab-runner: runners: config: | [[runners]] [runners.kubernetes] # pod 使用特权身份运行 privileged = true image = "ubuntu:22.04" {{- if .Values.global.minio.enabled }} [runners.cache] Type = "s3" Path = "gitlab-runner" Shared = true [runners.cache.s3] ServerAddress = {{ ...
gitlab-runner: runners: config: | [[runners]] [runners.kubernetes] image = "ubuntu:22.04" {{- if .Values.global.minio.enabled }} [runners.cache] Type = "s3" Path = "gitlab-runner" Shared = true [runners.cache.s3] ServerAddress = {{ include "gitlab-runner.cache-tpl.s3ServerAddress...