E
E
Evdokim2019-10-02 16:19:17
git
Evdokim, 2019-10-02 16:19:17

How to make GitLab automatically upload changes to the working directory?

Deployed GitLab Enterprise on a development server that has a Repo1 repository . On the same development server, there is a directory /www , which Nginx "watches".
How to make it so that when pushing (git push) to the Repo1 repository, after a while, all changes to /www automatically appear ? So that, for example, I go to a certain address https://address and see my changes that I pushed?
As far as I know, the Repo1 repository that is deployed to GitLab is a bare repository. How to make the right settings in GitLab so that there is such a synchronization? Thanks in advance !

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
szelga, 2019-10-02
@szelga

raise an instance of gitlab-runner, set it up, register it in .gitlab-ci.ymlwork deploy, which will "roll out" the changes to the right place by the script. additionally, it is worth prescribing conditions so that changes are rolled out only from the main branch of the main repository.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question