A
A
Artem Soshnikov2016-10-18 10:48:19
Programming
Artem Soshnikov, 2016-10-18 10:48:19

GitLab - Is it correct to use Runners for deployment?

Setting up CI for a project in gitlab (self-hosted if that matters).
At the moment there are stages:

stages:
  - test
  - deploy

In test, testing is performed on Runner1 (test server), and if everything is OK, then deploy is performed on Runner2 (production server).
The deployment step looks like this:
deploy:
  stage: deploy
  environment: deploy
  script:
    - php phpunit.phar
    - mkdir -p /home/my_super_site
    - cp . /home/my_super_site -r -f
    - chown www-data:www-data /home/my_super_site -R

Both Runners use ssh executor, both are also specific and each has its own tag.
Is it correct, in general, to use Runner for deployment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Soshnikov, 2016-10-26
@artem90

I answer my own question: in general, there are no problems with this approach. Perhaps so far they have not arisen, but I have not seen any mention of possible problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question