Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question