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

[git] repo is getting bigger as we keep the history of all builds of the frontend in it #227

Open
alonh opened this issue Sep 7, 2022 · 2 comments

Comments

@alonh
Copy link
Contributor

alonh commented Sep 7, 2022

Currently, on every merge to the main, we compile the frontend using a GitHub action, and push the compiled version to label_sleuth/frontend.

We should:

  1. Remove all the historic compiled versions
  2. Look for a solution to prevent historic builds from being saved
@martinscooper
Copy link
Member

  1. We could use git filter-branch for this. However this will a) rewrite all the history and b) remove build files from tagged commits.
  2. The simplest solution here is to do shallow clones with git clone --depth. Other solution, though more complex, would be to store build files somewhere else, like in another repository. The backend could somehow pull them automatically on start.

@martinscooper
Copy link
Member

Interesting related article: https://www.atlassian.com/git/tutorials/big-repositories

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants