How to configure the gitlab-runner in both user and root mode

We install the gitlab-runner on ubuntu server.

sudo apt install gitlab-runner

Then we need register the runner.

gitlab-runner register

It is better to register the gitlab-runner in user mode, or some folder permission troubles would be met.

I the final step of registration, a choice shoule be made which way the runner runs. Typically shell is used.

Cool. The registration is done. At last the gitlab-runner should run in a user mode with the command:

gitlab-runner run &

It runs and immediately is put in the background.

Related

Created 2023-01-20T22:23:39+08:00, updated 2023-02-06T08:51:17+08:00 · History · Edit