@
@
@Twitt2021-08-06 16:39:52
GitLab
@Twitt, 2021-08-06 16:39:52

Script for automatic git pull on remote server?

I have a project, I want that when I upload the code, when I press the Merge button in the gitlab, the code automatically gets to the remote server and git pull is done. Now it’s just that the code is uploaded to the desired branch, but I have to go to the server every time and pull the changes manually.
I have never dealt with CI/CD personally, but does anyone have a ready-made piece of script that can be inserted? Or at least how to google the whole thing correctly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
akelsey, 2021-08-06
_

For this, Gitlab-runner is used, it is deployed on the server, the necessary pipeline is created, which, when committed to GIT, will do everything by itself.
Google towards .gitlab-ci.yml gitlab-runner ci/cd pipelines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question