Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Self Update #19210

Closed
idc77 opened this issue Mar 25, 2022 · 2 comments
Closed

Automatic Self Update #19210

idc77 opened this issue Mar 25, 2022 · 2 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@idc77
Copy link

idc77 commented Mar 25, 2022

Feature Description

Gitea should be able to update itself automatically to keep up with the latest, at least, security updates.

How should this work?
gitea is running and checking the latest release version. If higher than current:

  • download new binary for your platform
  • on Linux it is possible to overwrite the current binary while it's running, I'm not sure if that's possible on other platforms.
  • If not possible: write a little update daemon whos sole role is to check current release version, download new release, stop running systemd service, replace binary of old with new, restart systemd service.
  • if possible: replace current binary with new one. restart systemd service.

The idea is "install once, never worry about it again".

In the beginning this could work with pre-compiled binaries only, later this could be extended with building from source with a binary fallback.

This could be very easily implemented. Have a background timer running that checks the latest release on github every 24h.
https://docs.github.com/en/rest/reference/releases

If activity, wait for activity to complete and execute copy/restart.

Screenshots

No response

@idc77 idc77 added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Mar 25, 2022
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Mar 25, 2022

@idc77
Copy link
Author

idc77 commented Apr 4, 2022

I'm talking a bit more sophisticated than a simple shell script.

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants