R
Railway16mo ago
Kuyumee

Is there a way to rebuild/redeploy a Dockerfile when an external github repo updates?

Is there a way to rebuild/redeploy a Dockerfile when an external github repo updates?
11 Replies
Percy
Percy16mo ago
Project ID: N/A
Kuyumee
Kuyumee16mo ago
N/A
Brody
Brody16mo ago
no such feature exists native to railway
Adam
Adam16mo ago
Could you please elaborate? If your service is linked to a repo then it will redeploy whenever the repo updates. It will build with a dockerfile if the root directory has a dockerfile
Kuyumee
Kuyumee16mo ago
My project has a dockerfile that uses git clone, I would like to redeploy/rebuild that dockerfile when the repo that it is supposed to clone updates
Brody
Brody16mo ago
you would have to roll your own solution
Kuyumee
Kuyumee16mo ago
What does Cron Schedule do exactly? Does it restart the project when it triggers? Does it have time limits?
Adam
Adam16mo ago
Cron scredules fire up your app, let it do its thing until it finishes, then closes the app they shouldn’t be used for whole apps, just individual functions you need to run periodically
Brody
Brody16mo ago
fun fact, it doesn't close your app, your app is responsible for doing the action and then closing as fast as possible
Adam
Adam16mo ago
ah nice that’s fun
Brody
Brody16mo ago
I mean the exact same thing applies to a regular cron job on linux
Want results from more Discord servers?
Add your server