i’m using deployer on the Server with gitea. The Idea is, a post-receive calls the deployer for the repo. On the console with the gitea-user the deployer runs, no errors. All ssh-keys are added to the ssh-agent and he is loaded from a script in the .bash_profile. The post receive runs with the same user, but if i push, i get this,
There only two lines in my post-receive, he only starts the deployer. But i found the reason. I have add the keys to ssh-agent. The ssh-agent starts with a script in the ./bash_profile. BUT i have checked the post-receive, there is no ssh-agent running, so he didn’t know the keys… I’m not sure how to “fetch” the ssh-agent
I run a script to get the ssh-agent that started with the bash. The Problem was the ssh-agent that was not running. It makes sense, because gitea runs as a Service.
But i’m not really satisfied with this, it feels a little bit hacky.