I have the following situation:
I have a project hosted on a private repository on bitbucket, for which I use deployment key #1.
In this project's composer file is a dependency hosted on a satis repository, and is pulled through another private bitbucket repository, using deployment key #2.
I have deployment key #1 stored in ~/.ssh/id_rsa, so git pull works out of the box, and deployment key #2 stored in ~/.ssh/id_composer How can I tell composer to use that second key when running composer update?
This is what I have so far in my composer.json but it isn't helping, and I'm having trouble finding the required options I should specify.
"repositories": [
{
"type": "composer",
"url": "http://custom-satis-repo-url",
"options": {
"git": {
"pubkey_file": "~/.ssh/id_composer.pub",
"privkey_file": "~/.ssh/id_composer"
}
}
}
],
Any help would be appreciated.
Thank you.