3.1 KiB
stage | group | info |
---|---|---|
Verify | Runner | To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments |
Generate runner tokens (FREE)
To register a runner, you can use either:
- An authentication token assigned to the runner when you create the runner in the UI. The runner uses the token to authenticate with GitLab when picking up jobs from the job queue.
- A registration token (deprecated).
Generate an authentication token
Registration with an authentication token is only available for shared runners. Support for project and group runners is proposed in this epic.
For a shared runner
Introduced in GitLab 15.10. Deployed behind the
create_runner_workflow_for_admin
flag, disabled by default.
FLAG:
On self-managed GitLab, this feature is not available. To make it available, ask an administrator to enable the feature flag named create_runner_workflow_for_admin
.
On GitLab.com, this feature is available but can be configured by GitLab.com administrators only.
Prerequisites:
- You must be an administrator.
To generate an authentication token for a shared runner:
- On the top bar, select Main menu > Admin.
- On the left sidebar, select CI/CD > Runners.
- Select New instance runner.
- Select a platform.
- Optional. Enter a description.
- Optional. Enter a maintenance note.
- Optional. Enter configurations for the runner.
- Select Submit.
- Follow the instructions to register the runner from the command line.
NOTE:
The token only displays in the UI for a short period of time during registration,
and is then saved in config.toml
.
Generate a registration token (deprecated)
WARNING: The ability to pass a runner registration token was deprecated in GitLab 15.6 and is planned for removal in 17.0, along with support for certain configuration arguments. This change is a breaking change. GitLab plans to introduce a new GitLab Runner token architecture, which introduces a new method for registering runners and eliminates the legacy runner registration token.
For a shared runner
- On the top bar, select Main menu > Admin.
- On the left sidebar, select CI/CD > Runners.
- Select Register an instance runner.
- Copy the registration token.
For a group runner
- On the top bar, select Main menu > Groups and find your group.
- On the left sidebar, select CI/CD > Runners.
- Copy the registration token.
For a project runner
- On the top bar, select Main menu > Projects and find your project.
- On the left sidebar, select Settings > CI/CD.
- Expand the Runners section.
- Copy the registration token.