A node gitlab-ci-runner
$ npm install -g gcr
The first time you run gcr
, just run gcr
without a token. It will prompt your for your registration token and will then generate your CI token.
$ gcr --help
gcr
Usage:
gcr [command] [options]
Options:
-h, --help Show help and usage
-l, --loglevel <level> Set log level
-v, --version Show version
-u, --url <url> Set CI Server URL
-t, --token <token> Set Registration Token
-T, --timeout <number> Set the timeout in milliseconds
-b, --buildDir <dir> Set the builds directory
-s, --strictSSL Strict SSL
I wanted something that was really easy to install (npm install -g gcr
)
MIT
Thanks to the GitLab team for all of their effort on GitLab/GitLab CI.
On launch, if a rsa key does not exist (named gcr.pub
), then one will automatically be created. gcr
will then ask for your GitLab CI Coordinator URL as well as your Registration Token. The directory in which projects are built defaults to /tmp/builds
. If you would like to change that, then simply run gcr --buildDir <dir>
and that will be saved.