A heroku buildpack for setting the ssh private key as part of the application build. It's meant to be used before other buildpacks which require the key to be present, like installing private
npm modules or
composer packages from
Upload the private key to heroku (note that the key needs to be base64 encoded).
$ heroku config:set DEPLOYMENT_SSH_KEY="$(cat ~/.ssh/id_rsa | base64)"
Use the Heroku Toolbelt to
add this buildpack.
--index to make sure the buildpack runs before any others which might need
the SSH key setup:
$ heroku buildpacks:add --index 1 https://github.com/alipes-inc/ssh-private-key-buildpack.git
You could also use Heroku's GUI to add this buildpack.
Copy the snippet above into CLI.