R
R
Ruslan2017-04-19 10:52:05
PHP
Ruslan, 2017-04-19 10:52:05

GitLab-CI deploy one branch to two servers possible?

PHP project.
There is a local git repository with one master branch.
You need to deploy the content first to the test server, then the same branch to the production server.
The Gitlab deployment is organized using the .gitlab-ci.yml file (it must contain an SSH connection). The file is placed in the repository.
But how to organize the deployment of one branch to two servers?
I know about jenkins and similar services, for a number of reasons we cannot use it, there is only a GitLab server.
We cannot make two branches in the repository either. Customer requirement.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitriy, 2017-04-19
@dmitriylanets

what's the problem with uploading to both servers?
do a task, upload rsync via ssh, you can deploy-to-dev and then deploy-to-prod in two tasks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question