Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.01 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.01 KB

heroku-buildpack-private-vendor

Add a private vendor to your build via config var git url and ssh key.

Adapted from SectorLabs/heroku-buildpack-git-submodule.

Usage

  1. Add the buildpack to your Heroku app:

    $ heroku buildpacks:add https://github.com/RasPhilCo/heroku-buildpack-private-vendor.git -i 1
    

    Keep in mind that the buildpack order is important. If you'll specify this buildpack after your default one (e.g. heroku/nodejs) it'll not work. See https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app for details.

  2. Set the GIT_REPO_URL to the SSH URL of your Git repo:

    $ heroku config:set [email protected]:SectorLabs/myrepo
    
  3. Set GIT_SSH_KEY to the private SSH key that can access both your repo and its submodules:

    $ heroku config:set GIT_SSH_KEY=$(cat ~/.ssh/id_rsa)