Skip to content
Snippets Groups Projects
Verified Commit 9cb58018 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

make token an argument of the register.sh

parent 9b5e1510
No related branches found
No related tags found
No related merge requests found
...@@ -44,11 +44,10 @@ The `gitlab_runner` container will be able to pull them and launch them (within ...@@ -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. 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. 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 :
Specify the tag and the name of the runner and register it with the following command:
```sh ```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. You can check the runners registered in the **CI/CD** settings of your group.
......
...@@ -4,7 +4,7 @@ docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner -v /var/ru ...@@ -4,7 +4,7 @@ docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner -v /var/ru
--executor "docker" \ --executor "docker" \
--docker-image lmodolo/r_dev:3.5.1 \ --docker-image lmodolo/r_dev:3.5.1 \
--url "https://gitlab.biologie.ens-lyon.fr/" \ --url "https://gitlab.biologie.ens-lyon.fr/" \
--registration-token "TOCKEN" \ --registration-token "$1" \
--description "docker-runner for r_dev:3.5.1" \ --description "docker-runner for r_dev:3.5.1" \
--tag-list "docker, r, devtools" \ --tag-list "docker, r, devtools" \
--run-untagged \ --run-untagged \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment