Suppose there is a project in gitlab'e - test.git . In the development process, the merzhrekvesty come, and after merge to the master, I want to roll out the release on production. To do this, I go to the server and execute the following command there:
git archive --remote=/git-data/repositories/root/test.git master | tar -x -C /sites/test/
But, is it possible to do this from gitlab, in order not to go to the server? And for example, in my case, this is a project on node.js, and after the git archive command is executed, I would also like to restart the node /sites/test/restart.js --use_strict .
ps read about builds but didn’t understand how it works, please explain in more detail how it works and how to solve my problem.
builds- from gitlab. This is a tool to build, code and test your code before it enters the master. This is one possible way to launch a deployment — but not the only one. However, the deployment script itself can also be implemented in a variety of ways. - Nick Volynkin ♦