18  GitLab CI Runner

We use GitLab CI Runner for our Infrastructure as code (IaC).

18.1 Install self-managed runners

Follow the notes at Chapter 49.

18.2 Configure self-managed runners

Follow the notes at Chapter 49.

18.3 Register self-managed runners

Get the registration token from the project’s Settings > CI/CD > Runners > Specific runners and run

Important

Replace GITLAB_TOKEN with the registration token.

gitlab-runner register \
    --non-interactive \
    --tag-list notebooks_gesis_org \
    --url https://git.gesis.org/ \
    --registration-token GITLAB_TOKEN \
    --name orc2_production \
    --request-concurrency 1 \
    --executor shell \
    --shell bash
Runtime platform                                    arch=amd64 os=linux pid=1109000 revision=de7731dd version=12.1.0
Running in system-mode.                            
                                                   
Registering runner... succeeded                     runner=GR134894
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!