I’m looking for non-interactive (programatically) way of generating the authentication token and then create the runner using gitlab-runner register command…
For example:
RUNNER_TOKEN = gitlab-rails runner ????
gitlab-runner register \
--non-interactive \
--executor "shell" \
--url "https://gitlab.com/" \
--token "$RUNNER_TOKEN"