S
S
Stepan Yudin2017-02-04 16:11:13
Capistrano
Stepan Yudin, 2017-02-04 16:11:13

How to deploy with Capifony and Gitlab-CI?

Have a nice day, everyone!
The question is: how to deploy using capistrano from Gitlab-CI?
I imagine it like this:
the CI script is run in a docker container on a remote machine where Gitlab-Runner is installed.
I want to execute a deploy script that pulls. cap production deploy
But this procedure requires a private SSH key to connect to the production machine. Where does he get this key?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Kolzhanov, 2017-06-01
@clockworkbird

As an option - on the machine (in the container) that will connect to the production machine, generate (for the user under which cap deploy is executed) keys and upload the key to the production via ssh-copy-id.
But perhaps it is better to wrap the application in docker containers and deploy through the docker registry instead of capistrano.

S
Stepan Yudin, 2017-10-14
@stepan_sib

I figured it out for a long time, if someone needs a solution - ask, I'll write it down dct gj gjkjxrfv The
whole article will be released

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question