I am testing gitlab CI/CD for the first time with a gitlab project and an EC2 instance that I had purchased to deploy my project. I would ssh into the instance and then do the rest to update the project there. Till now I was using free shared runners provided by gitlab. But now there is a question in my mind: Since gitlab-runner is basically a process that executes CI/CD jobs, I deduce that it can run anywhere, provided that it is correctly registered on GitLab. Now, I am thinking is it possible to run the gitlab runner on that same EC2 instance on which I am deploying my project. If yes, is it necessary then to still login to the instance through ssh.
Documentation is not much clear about this. Even though I haven't tried it yet, but still I would like to know if it is possible?
Thank You!