Docker Machine:延續上一個 Executor,此種 Executor 一樣會透過 Container 來執行 CI Job,但差別在於這次你原本的 Runner 將不再是一般的工人了,它已經搖身一變成為工頭,每當有工作(CI Job)分派下來,工頭就會去自行招募工人(auto-scaling)來執行工作。因此倘若在短時間內有大量的工作需要執行,工頭就會去招募大量的...
runner 实例的执行环境,一般用的较多的是shell和docker,这两者的区别无需赘述。 让人困惑的是其它一些executor:比如Docker-SSH和Docker-SSH+machine,还好从 GitLab Runner 10.0 开始, 这两者就被废弃了,并且将在后续某个版本中移除;还有Docker machine,这个概念原本是 Docker 提出的,但是后面同样被 Docker 弃用了,只...
Please enter the gitlab-ci descriptionforthisrunner:[code.example.com]:Please enter the gitlab-ci tagsforthisrunner(comma separated):defaultRegistering runner...succeeded runner=tq8CfUDA Please enter the executor:docker+machine,docker-ssh+machine,kubernetes,docker-ssh,parallels,shell,virtualbox,custom...
If you want your CI/CD job to run commands in a custom Docker container, you might install GitLab Runner on a Linux server and register a runner that uses the Docker executor. These are only a few of the possible configurations. You can install GitLab Runner on a virtual machine and ha...
[runners]]name="my first runner"## Runner名称;url="http://192.168.1.200/"## GitLab Server地址;token="z6QEqyGpDrvzNgfxLiVh"## Runner token;executor="shell"## Runner的执行器;[runners.custom_build_dir]## 允许用户为作业定义自定义构建目录;[runners.cache]## 分布式缓存目录;[runners.cache....
docker executor $ cat config.toml ... [[runners]] environment = ["DOCKER_AUTH_CONFIG={\"auths\":{\"registry.xxx.com\":{\&q
docker run--rm-v/srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register \--non-interactive \--executor"docker"\--docker-image alpine:latest \--url"http://192.168.137.130/"\--registration-token"wgqg6_2Si-7RfgKbyYnL"\--description"20211028-register-runner"\--tag-list...
value: kubernetes tags: k8s runners: config: | [[runners]] executor = "kubernetes" ...
crt --url https://your-gitlab-url --token your-runner-token --executor shell --shell powershell 请将上述命令中的https://your-gitlab-url替换为你的GitLab地址,your-runner-token替换为你在步骤2中获取的Token信息。 配置Runner的Shell选项。在命令提示符(CMD)或PowerShell中执行以下命令,修改Runner的...
executor = "docker" [runners.docker] tls_verify = false image = "docker:stable" privileged = false disable_cache = false volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"] [runners.cache] Insecure = false 对应的.gitlab-ci.yml例子如下 ...