D
D
diablo_fors2016-10-10 12:33:14
git
diablo_fors, 2016-10-10 12:33:14

GitLab: How to set up auto-rollout to the server?

Tell me, please, knowledgeable people. Is it possible somehow with GitLab to set up auto-upload to a directory on the server with each new commit?
With GitHub, this can definitely be done, but GitLab is of interest.
I honestly don’t even know how it is implemented, I would at least know where to dig.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-07-04
@LiS-31

Git has a hook system . When the selected event occurs, a predefined script is executed, in your case, post-commit is suitable. Their implementation is found in most Git clients and servers.
GitLab adds its own hooks to these features . If that's not enough, you can try GitLab Runner .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question