Deploying a project on a server with Gitlab

I usually used a different platform such as DeployHQ to deploy projects, but in this case I have a local repository installed that pushes to a remote repository in Gitlab, but how can I then push the remote repository to a live server?

Do I need to create a web hook after receiving for this in Gitlab, and if so, can anyone advise what I need?

I tried to find the documentation and did not find the instructions for what I needed, but I probably did not look for the right thing.

Please can someone point me in the right direction?

+6
source share
1 answer

You can install the GitLab CI runner on your production server, or if you have another, configured deployment server with the runner installed. To install the runner on the server, refer to this guide .

Then you need to configure the repository using the gitlab-ci.yml , which you place in the root folder of your repository. In this file, you specify where specific files and folders go (using copying), build files, or do whatever you need to execute and run. Guidance on setting up such a file can be found here .

0
source

All Articles