diff --git a/README.md b/README.md index d851bd4722d80ab97efd125b1bd706538487764d..16ca537d9412b05e694cdd83b1ba586e476c6e5d 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,10 @@ The `gitlab_runner` container will be able to pull them and launch them (within To register a runner you need to use the `*_runner_register.sh` scripts. -For a `r_dev:3.5.1` runner, edit the `r_dev_runner_register.sh` file to add your group token. -Specify the tag and the name of the runner and register it with the following command: +For example, for a `r_dev:3.5.1` runner register it with the following command, where `<group_token>` is the token of your group : ```sh -./r_dev_runner_register.sh +./r_dev_runner_register.sh <group_token> ``` You can check the runners registered in the **CI/CD** settings of your group. diff --git a/r_dev_runner_register.sh b/r_dev_runner_register.sh index 5eda4dea3f81680673404beaaa9db8200e1ba68d..e9b3db46fd71dd7d09fc858293d8197f4a10b336 100755 --- a/r_dev_runner_register.sh +++ b/r_dev_runner_register.sh @@ -4,7 +4,7 @@ docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner -v /var/ru --executor "docker" \ --docker-image lmodolo/r_dev:3.5.1 \ --url "https://gitlab.biologie.ens-lyon.fr/" \ - --registration-token "TOCKEN" \ + --registration-token "$1" \ --description "docker-runner for r_dev:3.5.1" \ --tag-list "docker, r, devtools" \ --run-untagged \