this post was submitted on 01 Jul 2023
34 points (100.0% liked)
Programming
13385 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I’ve made too many mistakes like this, so I check in anything important into git. Gitlab is easy to run locally.
If it is not in git, it is not safe, learned that the hard way as well... I guess we all do at some point
I guess some lessons need to be learned through pain.
Yes, all those hurt. They sometimes still do, most of us are not machines that turn caffeine into code and we are never as clever as we think we are.
On a side note, w.r.t. keeping the dependencies up to date, have a look at renovatebot. It creates merge request for each and every dependency update, thus triggering a build to check that everything is OK.
Oh, that seems nice. I'll bring it up at work, we have some projects that could use this.
Can it run against a simple git repository or does it only work with the apis of github, bitbucket and co?
You decide which repo you want to be managed, there's an embarking option that creates an issue explaining how to have the tool embarking the repo and the tool itself has a filter if you want a "whitelist" approach.
The docs list GitHub, Gitlab, Bitbucket, Gitea and some Azure and AWS solutions. The runner is only available on Gitlab, though.
There's also a "freemium" solution, but I couldn't get it to work and the runner is working fine anyway.
If you'll run gitlab locally just for you, it's easier to simply create a network shared directory and use it as a git repository. Git on your local machines can push/pull/clone to/from a directory (local or remote) just like to/from a git server.
GitLab is pretty resource heavy - if you want to self host something I prefer Gitea. Very easy to set up, doesn’t require Docker, just a single binary.
Why bother with either of those for private personal repos though? Why not just regular remote repos over ssh?
That's also an option - I've used gitolite before to set that up. In my case though I wanted to mirror repos from gitlab.com and github, and I might want to hook up CI and webhooks later on.