Remove an old deployment after a new one has been successfully launched
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 π
Solution:Jump to solution
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
4 Replies
Project ID:
N/A
N/A
Solution
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
Thanks!