From 9cb5801897eb7d3f1bd4fc49bc55a0c6bd8eed9a Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent.modolo@ens-lyon.fr> Date: Fri, 20 Jul 2018 09:34:09 +0200 Subject: [PATCH] make token an argument of the register.sh --- README.md | 5 ++--- r_dev_runner_register.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d851bd4..16ca537 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 5eda4de..e9b3db4 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 \ -- GitLab