-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Git clone failed while deploy (but ssh key works fine) #3119
Copy link
Copy link
Closed
Description
- Deployer version : 6.8
When I try to deploy my app, I have an error on "git clone" :
The command "export SYMFONY_ENV='prod'; cd /PATH/app && (/usr/bin/git clone -b "master" --recursive git@github.com:USER/REPO.git /PATH/app/releases/1 2>&1)" failed.
I have created SSH key with "ssh-keygen", and add it on Github.
If I connect to the server via SSH, I can run the same "git clone" command without error, but I must run "ssh-add" first systematically :
ssh-add /PATH/.ssh/id_ed25519_github
I have added "AddKeysToAgent yes" in .ssh/config, but it makes no difference.
I try to add a task in Deployer to run it automatically before the task "deploy:update_code" :
run('ssh-add /PATH/.ssh/id_ed25519_github');
But it still doesn't work... Have you any idea please ?
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels