启动gitlab-runner(提供自动创建、销毁runner的服务)
1 | docker run -d --name gitlab-runner --restart always \ |
注册runner
1 | gitlab-runner register -n \ |
查看注册后生成的/etc/gitlab-runner/config.toml:
1 | [[runners]] |
gitlab cicd日志:
1 | Running with gitlab-runner 12.1.0 (de7731dd) |
要支持docker in docker,改为:
1 | [[runners]] |