CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Auto updating between patch/minor releases #68

Open RPiAwesomeness opened 7 years ago

RPiAwesomeness commented 7 years ago

Having the ability to have CactusBot receive notification of new releases (via GitHub webhooks or Sepal) and then having it download the new code seamlessly update itself would be very useful.

It would mainly be for patch releases, bug fixes and minor changes (example: x.x.0 -> x.x.1), but possibly for minor releases (x.2 -> x.3).

2Cubed commented 7 years ago

This would be really cool.

We would have to take into consideration things that can't just be git pulled, too - for example, changing a config file from a .json to a .py, like in v0.3 to v0.4. Maybe we could release a script which updates from one version to the next? (So, to update from v0.3.5 to v0.4, it would run v0.3.5 to v0.3.6, and then v0.3.6 to v0.4?) This would be really helpful even for standard manual updating procedures. We could potentially add this file as a "binary" to each release?

RPiAwesomeness commented 7 years ago

@2Cubed Possibly, but it would preferable if this could be handled within the bot in a seamless manner, without requiring an external script.

2Cubed commented 7 years ago

@RPiAwesomeness True. Not sure of any other way to accomplish this, though. :thinking: