I have a mvn
project which must be build as an non-root user
but by default gitlab-ci allows runners to run as root user.
I'm using gitlab.com
runners by setting up gitlab-ci.yml
file.
I tried creating a user and switching to it like this:
$ useradd ***
$ su -***
$ whoami
root
It still says I'm root. How can I solve this?