gitlab CI - build on remote server via ssh and shell executor

Hi,

New to GitLab and doing a POC with GitLab CI. Is there a way were we can build on remote server using ssh and shell executor? Guidelines is not straightforward and most of them is docker & k8s related.

Thanks!