-
Notifications
You must be signed in to change notification settings - Fork 44
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
How should we deal with gitea updates in the future? #51
Comments
That makes sense to approach it this way, that would actually be cooler that manually updating it like we do right now It would have to be clear in the documentation that using I am however concerned if we allow the user to both use |
@DO1JLR any opinion about that ? I am worried that people would pin Gitea versions and end up with completely fucked configs because we will follow the latest release, which might not be good. I am not sure ansible allows that but maybe we could do one At this point I have no strong opinions so I am really open to suggestions. |
There is a download url for the last version of a minor version. |
I like the idea from @sapk |
Sorry, I made a assomption that it follow the same scheme of docker but dl.gitea.io/gitea/1.12 is the last build from 1.12 branch. It is the last commit and not the last release. Maybe we could do something on gitea to have the same scheme somewhere on dl.gitea.io as we use for docker release.
|
@sapk like have gitea to have a pattern that accomodates us ? xD I mean that sure would be swell but I'm not sure they even know we exist |
Should I just mention @giteaio on twitter and ask them for advice ? |
@thomas-maurice @sapk is a maintainer of Gitea, and I suspect he found this issue from the official Gitea twitter account retweeting your request for help. |
Well then that would be truely awesome! |
The idea here is not to inadvertently break people's setups |
Indeed. Like @sapk suggested above, we could probably move to align dl.gitea.io with the way we tag docker images, which isn't a huge change. |
That would be brilliant mate <3 |
Just created a ticket for it, but in the interim to discover new releases dl.gitea.io actually has an API. ex |
Thanks ! Also if you want this shit to become part of the official gitea project just hit me up |
@techknowlogick is the ticket public btw ? so I can track it :) |
+1 to this issue, gitea 1.12.4 was released that fixes security issues, one should not be installing 1.12 wich has known security issues. What about trying to download https://github.com/go-gitea/gitea/releases/tag/v1.12.4 https://github.com/go-gitea/gitea/releases/tag/v1.12.5 https://github.com/go-gitea/gitea/releases/tag/v1.12.6 ... until a 'Not Found' is returned and then keeping the latest 1.12 url and using this? |
An update: So currently the above proposal doesn't work anymore (We should always install latest security updates asap) I'm in favour of using the lastest release every time, using the api... |
+1 for "latest" since its the best decision for new installs (also why would a role decide which is the best version for new installs?). |
Hey everyone. I wanted to inform you that the feature of
If someone feels motivated to do so, this can of course still be incorporated here. |
@DO1JLR How exactly is latest implemented? or they release v1.15.0-rc3 ; I'm all for timely updates, but an rc might be a bit to soon... |
@JensTimmerman good point. The version detection magic is happening there: https://github.com/roles-ansible/ansible_role_gitea/blob/9326cd01f12cc8248d09e8d5a5df79f605dfe451/tasks/set_version.yml#L10-L30
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version_target }}/gitea-{{ gitea_version_target }}-linux-{{ gitea_arch }}" The decision which version is the |
Gitea has been updated more often lately. And the practice of updating it every time in this role can be done... But it doesn't seem to make that much sense in the long run.
What do you think about extending this ansible role by adding some magic that automatically downloads the newest gitea version? For example by evaluating a curl on
https://github.com/go-gitea/gitea/releases/latest
...Of course the variable
gitea_version: 1.12.1
should still be valid. But if you write something likegitea_version: latest
, a download of the latest version would be nice.Or what do you think?
The text was updated successfully, but these errors were encountered: