dcloud ci runners create-registration-token

Issue a one-time token a machine registers itself with

IAM ci:ManageRunnersChanges stateAsks before it deletes (-y skips)

The token is returned once and stored hashed. It expires after 15 minutes and can be redeemed by exactly one machine. `configCommand` registers GitHub’s own runner (`./config.sh --url https://git.{root}/{org}[/{repo}] --token …`), which then runs GitHub-syntax jobs with `runs-on: self-hosted` (plus any labels it carries); `installCommand` installs the Deutsche Cloud agent on a Mac. A runner that will hold deploy credentials belongs in a group with `protectedRefsOnly`.

Synopsis

dcloud ci runners create-registration-token [flags]

Flags

  • --repository-idOptional

    string

    Limit the token, and the runner it registers, to this repository (authorized on the repository); org-wide when absent

    Constraints: uuid

  • --group-idOptional

    string

    The runner group the machine joins; the Default group when absent

    Constraints: uuid

  • --labelsOptional

    array of string

    Fix the runner’s custom labels; what the machine declares is then ignored (platform labels such as self-hosted, linux, x64 are kept)

    Constraints: 1-50 chars

Example

dcloud ci runners create-registration-token

Generated from the API description, the same one the API checks requests against and the CLI is built from.