LoginSignup
1
1

More than 5 years have passed since last update.

社外に立てたGitlab CI runner から 社内のGitlabにアクセス(clone)したい

Posted at

前提

  • 社内にGitlabがある
  • 社外にGitlab runnerを立てた
  • CI実行時にcloneするurlは社外からアクセスするとき用のurlでなければGitlabへアクセスできない

具体的に言うと、このようなURLでアクセスするような状況

解決方法

/etc/gitlab-runner/config.toml
concurrent = 1
check_interval = 0

[[runners]]
  name = "sample project ci runner"
  url = "http://gitlabpublic.example.com"
  clone_url = "http://gitlabpublic.example.com"
  token = "[トークン]"
  executor = "shell"
[runners.cache]

clone_url が設定されていないので、追記必要でした。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1