代码之家  ›  专栏  ›  技术社区  ›  Vikas Rathore

在现有git runner上使用GitLab CI/CD构建Docker映像

  •  0
  • Vikas Rathore  · 技术社区  · 6 年前

    我必须通过gitlab ci构建和推送docker映像。我已经看过正式文件了。

    https://docs.gitlab.com/ee/ci/docker/using_docker_build.html

    我想采用shell方法,但我的问题是我的服务器上已经有了一个运行gitrunner。那么它的程序是什么。如果我尝试在同一台机器上重新注册git runner。它会影响旧的吗?

    1 回复  |  直到 6 年前
        1
  •  0
  •   Philipp Ludwig    6 年前

    假设您将gitlab runner安装为系统服务,而不是安装在容器中,那么您可以轻松地注册另一个 shell 使用命令在服务器上运行 gitlab-ci-multi-runner register

    这一点得到了专家的间接证实 advanced configuration documentation ,表示 config.toml gitlab跑步者 [[runner]] 部分。

    注意 gitlab-runner 用户到 docker

    sudo gpasswd --add gitlab-runner docker