We should make sure to cleanup old build before starting a new one, a proposal for the cleanup would be:
- Keep the latest successful build so you can get the image/details/check when it was built
- Keep the two latest failed ones for debugging
This way we don't need to depend on another asynchronous process to do it for us.