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 badges1 Answer
Reset to default 0export BUNDLE_GITHUB__COM=<your-token-goes-here>
After that, just run the build.