When I want to deploy my last changes to my VPS, I always connect to my server with ssh and pull the project, install last packages, run migrations, and so on. I’m a lazy person to repeat this process over and over. Auto deployment comes to rescue. So whenever I make changes and push it, I want my project to be up and running with the last changes there too. I have so many options to accomplish this task including Jenkins, TeamCity, CircleCi and others. But my project hosted in GitLab and I have not so many space to install hundreds of megabytes of tools in my VPS.

We will setup on Ubuntu 16.04. Steps we should finish are:

  1. Create deployer user
  2. Install gitlab runner
  3. Register new gitlab runner
  4. Create .gitlab-ci.yml file

Create deployer user

Leave a Comment