17

Im working on adding code quality to gitlab. one of the step requires making changes to config.toml.

I have .gitlab-ci.yml at root level of project repository.and pipeline picks up this file.

where do i define config.toml ? at root level or i need to create a new folder like /etc/gitlab-runner/config.toml

Adam Marshall
  • 6,369
  • 1
  • 29
  • 45
wcsSunil
  • 181
  • 1
  • 1
  • 5

3 Answers3

17

The config.toml file is what configures a runner. You wouldn't have one unless you're running your own gitlab-runners, in which case it would be in /etc/gitlab/config.toml on the host running the runner. More information on Gitlab Runner and running it yourself is available here.

Adam Marshall
  • 6,369
  • 1
  • 29
  • 45
2

If you are using shared runners (the default), then you need not worry about any settings in that file.

config.toml comes into the picture only if you are setting up your own runner. You should not need to create config.toml - it gets created for you when you install your own runner.

shubh
  • 21
  • 2
1

The locations where it could be is documented here.

You can find the config.toml file in:

  • /etc/gitlab-runner/ on *nix systems when GitLab Runner is executed as root (this is also the path for service configuration)
  • ~/.gitlab-runner/ on *nix systems when GitLab Runner is executed as non-root
  • ./ on other systems

However mine is located at : /srv/gitlab-runner/config

TVK
  • 1,042
  • 7
  • 21