- There is a repository on the Hitlab ;
- There is a remote server.
How to deliver code from the repository to the server (after each commit)?
Can you please tell me what (what to use) for this?
How to deliver code from the repository to the server (after each commit)?
Can you please tell me what (what to use) for this?
On the server, you need to install a runner and configure it in the gitlab. Then without problems, you can execute the ground-level file (analogue of the command line). Read the documentation for runners.
shell - Andrey IvaskoSo everything set up. And it turned out to be easier than I thought. For an elementary code delivery to the server in the form of git pull, after each commit or action with the repository you need:
stages: - deploy git-pull: stage: deploy script: - cd /your/gitlab/repsitory - git pull tags: - name of your runner
git pull not required. GitLab Runner automatically when starting job retrieves changes in the repository at the time of the commit. And the repository directory becomes working. - Pavel Parshin- cd /your/gitlab/repsitory - git pull and then the code is delivered to that folder where I need - moovsSource: https://ru.stackoverflow.com/questions/946689/
All Articles