我一直在尝试在我的 Mac 中注册一个 gitlab 运行器,但我不断收到错误消息,说这是被禁止的。我能够在 Windows 上注册,但由于某种原因,它在我的 Mac 上不起作用。这些是我采取的步骤:
gitlab-runner register \
> --non-interactive \
> --url "https://gitlab.com/" \
> --registration-token "token" \
> --description "MyApp runner with shell" \
> --tag-list ios \
> --executor "shell"
Runtime platform arch=amd64 os=darwin pid=3868 revision=98daeee0 version=14.7.0
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
ERROR: Registering runner... forbidden (check registration token) runner=WswE4
PANIC: Failed to register the runner. You may be having network problems.
我正在使用正确的令牌。我尝试在 docker 中注册并在 Mac 中手动注册,但都失败了。有什么帮助吗?