Git submodules in railway docker build

Hello! So I have a situation where I need to initialize a private submodule inside an open source project I am deploying on railway. Any tips on how I could accomplish this on Railway? Thanks!
4 Replies
Brody
Brody9mo ago
would likely be easiest in a dockerfile, unfortunately I don't have any examples on hand
Parzival
Parzival9mo ago
6fb8606f-116c-4e15-b653-24c48bdad9dd @Brody I found some good examples ibjecting a github token in as an ARG. My only issue right now is that when the dockerfile gets run, I try and copy the .git folder into the container, but it just barfs and says it isnt defined.
Brody
Brody9mo ago
.git folders aren't included in github repos, that's a local thing
Parzival
Parzival9mo ago
hmmmm gotcha.
Want results from more Discord servers?
Add your server