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
Project ID:
N/A
N/A
no such feature exists native to railway
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
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
you would have to roll your own solution
What does
Cron Schedule
do exactly? Does it restart the project when it triggers? Does it have time limits?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
fun fact, it doesn't close your app, your app is responsible for doing the action and then closing as fast as possible
ah nice that’s fun
I mean the exact same thing applies to a regular cron job on linux