I have a PHP laravel project that is set up with Bitbucket Pipelines.
However, the project in question has a dependency on another one of my laravel projects (specifcally a laravel pacakge).
The problem is, when I run the composer install step specified in my bitbucket-pipelines.yml file it fails to pull down the repository. With the error:
"Permission denied (publickey). fatal: Could not read from remote repository."
Does anyone know where I am supposed to add the SSH key that needs generating? I.e. in the target repo or current. And once that key is added how do I ensure the pipeline can use that key to access the package repo?
Cheers
Hi Lee,
You can follow the instructions here to set up an SSH key to be injected into your Pipelines build here: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
Once you've done that, you need to add the public key to wherever your Laravel package is so that your build is authentication to talk to that server.
If the other Laravel package is also a Bitbucket repository, you can add the Pipelines public key as an access key on that repository.
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.