Absolute path to a file with environment variables used for gitlab-runner registration with runner registration tokens.
A list of all supported environment variables can be found in gitlab-runner register --help
.
The ones you probably want to set are:
CI_SERVER_URL=<CI server URL>
REGISTRATION_TOKEN=<registration secret>
Support for runner registration tokens is deprecated since GitLab 16.0, has been disabled by default in GitLab 17.0 and will be removed in GitLab 18.0, as outlined in the GitLab documentation. Please consider migrating to runner authentication tokens and check the documentation on services.gitlab-runner.services.<name>.authenticationTokenConfigFile.
Make sure to use a quoted absolute path, or it is going to be copied to Nix Store.
Declarations
Type
null or path
Default
null