Skip to content

KoanHealth/heroku-buildpack-ssh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack: SSH

Reads and sets ssh private key from an environment variable. Designed to be used with heroku-buildpack-compose to allow build process to access private resources without storing unencrypted keys in the repository.

Usage

This buildpack currently depends on the user env compile labs addon to be able to access the ssh key. To enable run:

heroku labs:enable user-env-compile

Set SSH_KEY variable to private key:

heroku config:set SSH_KEY=`cat /path/to/id_rsa`

The key must not require a password to use.

Enable the compose buildpack

heroku config:set BUILDPACK_URL=https://github.com/bwhmather/heroku-buildpack-compose.git

Create .buildpacks file:

https://github.com/bwhmather/heroku-buildpack-ssh.git
ssh://[email protected]:bwhmather/top-secret-project.git
https://github.com/heroku/heroku-buildpack-something-something.git

Placing line for this buildpack before that of buildpacks requiring access to private repositories.

About

Heroku buildpack for setting the server's ssh private key from an environment variable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%