How do I automate firmware upgrades

I am trying to set up an automated upgrade routine, where any upgrades are installed within 30 days of release, is this possible?