gitlab-ci
4 commands
4 shown
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
Prune dead runners
Verify configured runners and unregister ones GitLab no longer recognizes
gitlab-runner verify --delete
Trigger pipeline via API
Kick off a pipeline from outside CI with a trigger token and custom vars
curl -X POST -F token=$CI_TOKEN -F ref=main -F 'variables[DEPLOY]=true' https://<host>/api/v4/projects/<id>/trigger/pipeline
Run CI job locally
Run a .gitlab-ci.yml job locally in Docker; note: replaces removed gitlab-runner exec
gitlab-ci-local --job build
no commands match