【文件属性】:
文件名称:custom-ssh-key-buildpack:向您添加SSH密钥Heroku dyno
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-09 14:23:48
heroku buildpack ssh-key private-repository Shell
Heroku Buildpack:自定义SSH密钥
例如,如果需要下载专用存储库中存储的依赖项,请使用自定义SSH密钥buildpack 。
基于 。
用法
将buildpack添加到您的应用程序: heroku buildpacks:add --index 1 https://github.com/simon0191/custom-ssh-key-buildpack
生成一个新的SSH密钥( )
对于此示例,我假设您将键命名为deploy_key 。
将ssh密钥添加到您的专用存储库帐户。
GitHub: :
Bitbucket: :
将私钥编码为base64字符串,并将其添加为heroku应用程序的CUSTOM_SSH_KEY环境变量。
制作一个逗号分隔的主机列表,将其用于ssh密钥,并将其添加为heroku应用程序的CUSTOM_SSH_KEY_HOSTS环境变
【文件预览】:
custom-ssh-key-buildpack-master
----bin()
--------detect(73B)
--------compile(969B)
----readme.md(2KB)
----LICENSE(1KB)