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

[ci] Delete old builds #69

Open
nemesifier opened this issue Sep 19, 2021 · 6 comments
Open

[ci] Delete old builds #69

nemesifier opened this issue Sep 19, 2021 · 6 comments

Comments

@nemesifier
Copy link
Member

@devkapilbansal is there a way to remove the old builds?
I think we can keep stable releases (which we shall name differently), but we should highly limit the build results because space has a cost, I think we can keep the last 5 builds.

@nemesifier nemesifier added the enhancement New feature or request label Sep 19, 2021
@nemesifier nemesifier added this to Backlog in OpenWISP Priorities for next releases via automation Sep 19, 2021
@nemesifier nemesifier added this to To do (general) in OpenWISP Contributor's Board via automation Sep 19, 2021
@devkapilbansal
Copy link
Member

I am not sure but there should be some way. I will try to find more about it

@pandafy
Copy link
Member

pandafy commented Sep 30, 2021

This might be helpful: https://cloud.google.com/storage/docs/object-versioning

@devkapilbansal
Copy link
Member

This might be helpful: https://cloud.google.com/storage/docs/object-versioning

I think it can be great if we don't want to show builds to users. I mean is it possible to show all versions of the object to the user without some workaround?

What I am thinking of is to use some cloud functions to manage this thing. 🤔

@pandafy
Copy link
Member

pandafy commented Sep 30, 2021

I'll read more on this and get back after the weekend. Please feel free to proceed if you are able to make it work.

@atb00ker atb00ker moved this from To do (general) to To do (documentation) in OpenWISP Contributor's Board Jan 31, 2022
@atb00ker atb00ker moved this from To do (documentation) to To do (Python & Django) in OpenWISP Contributor's Board Jan 31, 2022
@nemesifier nemesifier moved this from To do (Python & Django) to To do (OpenWRT) in OpenWISP Contributor's Board Jan 23, 2023
@devkapilbansal
Copy link
Member

Hi @nemesisdesign
We can do it using Cloud Functions. A custom script can be executed that will be triggered on a file upload.
We can either keep stable releases in a different path like {bucket-name}/release or name them differently, whatever sounds good

@nemesifier
Copy link
Member Author

I would not change paths for now but only concern with deleting very old builds (eg: > 2 years).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants