Retrieves Gitlab-CI Token for Automated Runner Authentication
user ~/getcitoken % ruby getcitoken.rb < config.yml
ba46f9b37eadd14a77ad
Output is logged to getcitoken.log
- mechanize & logger gems
- ruby 1.9 or newer
-
See config.yml.example to see variable names for un/pw and gitlab-ci URL
-
Run
ruby getcitoken.rb < config.yml
-
Receive token and be forever happy!
The Dockerfile is used to build a container in order to use this tool without a Ruby installation. The image can be used read-only, it will output information logs to stderr and the token to stdout.