-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
I would like to integrate an auto-updater for Gitea. This will only work for our prebuilt binaries and our Docker container of course, for everything else we are out of control and the admin is responsible for the update on his own.
The functionality should be added via an build flag so that the regular builds by admins don't get this functionality.
Options
I can think about various options how we can handle this functionality. Below is a list of the options i though about:
- Provide a app.ini or CLI flag to opt-out from the update process, update the prebuilt binaries and docker containers automatically and do a graceful restart, optionally send a notification to the admins that an update have been applied
- Provide a app.ini or CLI flag to opt-out from the update process, add a page to the admin view that shows the latest available version and add a button to trigger the upgrade and graceful restart, optionally send a notification to the admins that there is a new version available
Tools
A pretty mature library is already out there in the wild, I would suggest to use https://github.com/inconshreveable/go-update for this. For the hosting of the updates we got the option to use our CDN based https://dl.gitea.io page or the service https://equinox.io/ offered by @inconshreveable.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.