Remove an old deployment after a new one has been successfully launched
Anonymous
TRIALOP

a year ago

Hello! I have a service with automatic deployment when committing to a specific Github repo branch. After the commit, the automatic build and deploy process starts. If everything is successful, then 2 instances of my service work. But I don't need this. So, how do I automatically delete the old container after a successful build of the new one?

P.S. Sorry for my bad English, I used a translator 🙃

3 Replies

Anonymous
TRIALOP

a year ago

N/A


brody
EMPLOYEE

a year ago

the old container is automatically removed after an overlap time, are you instead asking how to shorten this overlap time? if so, set a service variable RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0


Anonymous
TRIALOP

a year ago

Thanks!


Loading...