I've set up the Drone
on my remote Ubuntu 18.04
Linux
host. To make it easy I've installed drone-runner-exec
. I've successfully connected it to my GitHub
etc. So now it works fine, i.e. it clones the repository and begins to run my pipeline.
One of steps is simple bash script that have to update subfolders in the repo.
steps:
- name: Getting subfolders
commands:
- ./my_script
The runner executes the script but fails on some points. After searching I've found the scripts executed under user I've installed the Drone
. I see in ps aux
output that both docker
and drone
run under root
.
So my question - how can I change the system user under which the runner runs?