This supports loading a build pack from a private git repository.
It hooks in only to the release and compile api.
To use:-
-
Add this to heroku as a buildpack
heroku buildpacks:set heroku/ruby
-
Add a file in the project root .heroku-private-build.yml with the following shape:-
{ buildpacks: [ { uri: '[email protected]:user/private-repor' }] }
-
Add the base64 enocded deploy key to the BUILDPACK_SSH_KEY env variable
heroku config:set BUILDPACK_SSH_KEY=$(cat path/to/your/keys/id_rsa | base64)
Then push to heroku.