最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - Access private github repo during Rails 8 deploy with Kamal - Stack Overflow

programmeradmin7浏览0评论

I'm trying to deploy a Rails 8 app using kamal. However, while kamal is building the container and install all dependencies it fails on bundle install. One of my dependencies is a private github repository, so I think I need to provide my personal access token (as BUNDLE_GITHUB__COM) to Kamal.

I would like to set BUNDLE_GITHUB__COM as en environment variable and make it available to kamal/docker, but how do I do that?

I'm trying to deploy a Rails 8 app using kamal. However, while kamal is building the container and install all dependencies it fails on bundle install. One of my dependencies is a private github repository, so I think I need to provide my personal access token (as BUNDLE_GITHUB__COM) to Kamal.

I would like to set BUNDLE_GITHUB__COM as en environment variable and make it available to kamal/docker, but how do I do that?

Share Improve this question asked Mar 26 at 12:01 Pål Simen EllingsenPål Simen Ellingsen 338 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0
export BUNDLE_GITHUB__COM=<your-token-goes-here>

After that, just run the build.

发布评论

评论列表(0)

  1. 暂无评论