Register a runner by token

Register a runner with the new auth token; note: legacy registration-token is deprecated

gitlab-runner register --non-interactive --url https://<host> --token glrt-<id> --executor docker --docker-image alpine:latest

tool
gitlab-ci4 commands
tags
gitlab-cicicloud

More gitlab-ci commands

  • gitlab-runner verify --delete

    Verify configured runners and unregister ones GitLab no longer recognizes

  • curl -X POST -F token=$CI_TOKEN -F ref=main -F 'variables[DEPLOY]=true' https://<host>/api/v4/projects/<id>/trigger/pipeline

    Kick off a pipeline from outside CI with a trigger token and custom vars

  • gitlab-ci-local --job build

    Run a .gitlab-ci.yml job locally in Docker; note: replaces removed gitlab-runner exec

all 4 gitlab-ci commands