I have installed GitLab runner on Linux. I have also registered a runner. I have installed node for the user gitlab-runner. Node is also stored in the $PATH. But when I run the job, node is not found and the $PATH is also different from the $PATH in the terminal registered as gitlab-runner.I installed the runner with the following command:
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
I have installed GitLab runner on Linux. I have also registered a runner. I have installed node for the user gitlab-runner. Node is also stored in the $PATH. But when I run the job, node is not found and the $PATH is also different from the $PATH in the terminal registered as gitlab-runner. But I also installed the runner with the following command:
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
How can I get the same PATH to be used as the logged in gitlab-runner user?