Sync remote server with GitLab repo, everytime a new commit is pushed.
I am using the free plan of GitLab.com and this is the problem I am trying to solve:
- I have my desktop where I work on my project, and commit changes from it to GitLab
- I have a remote server, which needs to keep an up to date copy of the repo, which I end up doing manually, using git clone / git pull.
- I never edit my source directly on the remote server.
- The remote server is not always publicly acessible. Some times it is a VPS on DigitalOcean, and sometimes it is just a Raspberry Pi on my home network, behind a NAT.
Is there a way to setup a small service on my “remote” server, that looks out for a new commit being pushed to my GitLab repo, and automatically pull it?
Thanks in advance!