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

I'm trying to deploy a Rails 8 app using kamal. However, while kamal is building the container and

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744146510a4560448.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信