0

I a gitlab repository that I would like to set up a gitlab runner for. In the documentation it states that I need to register the runner using the "registration token" from the gitlab website in the repository settings.

However, after issuing the "gitlab-runner start" command, I still need to create a config.toml file with the url and a "runner token" in order to be able to run the gitlab-runner run command, which I need to run a number of commands upon a push on a specified branch.

I am not sure where to find this "runner token". In the documentation it only states that the runner token is different from the registration token, but not where to obtain it.

I would highly appreciate any kind of help or suggestions.

torek
  • 448,244
  • 59
  • 642
  • 775
Yes
  • 339
  • 3
  • 19
  • https://docs.gitlab.com/runner/register/ `Obtain a token: ... For a project-specific runner, go to Settings > CI/CD and expand the Runners section`. Let `gitlab-runner register` edit `config.toml`, don't do it by hand. – KamilCuk Sep 16 '21 at 14:21
  • @KamilCuk I ran gitlab-runner register with the registration token i acquired from the CI CD runner section but it did not create a config.toml file anywhere. Maybe it was not created in the default path? – Yes Sep 16 '21 at 14:31

1 Answers1

0

The config.toml was not being created in the proper folder, see here

Yes
  • 339
  • 3
  • 19