10 ms·
I'm considering host a gitea instance backup all of my repos. I have an important fix that need to be deployed right now but there is no way to deploy it in a
by buglungtung 3y ago
I'm considering host a gitea instance backup all of my repos.
I have an important fix that need to be deployed right now but there is no way to deploy it in a normal way with our CI which one was setup with Github Action. Fortunately I have a instruction to bypass CI and build the source by myself.
But again, Github defeat me because our release workflows are depend on GitOps which are effected by Github issue. Ahhhhhhhhhh I have to build the docker image, push it to ECR then update a YAML template to make EKS apply the new changes
It's 9PM in my timezone and I'm waiting for my patches are up. A frustrating incident
- galleywest200 3y agoGitea's ability to create a local repository as mirror of a remote repository is great for this. You can stay on Github and have your code regularly mirrored locally.
- jmkni 3y agoIf only Git had this sort of functionality built in…
- silverwind 3y agoPretty sure git can not continuously pull/push the mirrored repo like this feature does, by default every 10 minutes.
- edgyquant 3y agoThis is a one line cron job
- ijustlovemath 3y agoJust a mounted drive over sshfs...
- dboreham 3y agoGitea can run your CI actions too, and host your releases.
- buglungtung 3y agoOr use Gitlab. I remember doing a mirror syncing from Github with one of my gitlab repository. The main reason I used to do it is Gitlab offer free built-in CI at that time In my case one of most important thing is the GitOps workflow. It's single source of truth so it's also single point of failure ;(
- sklarsa 3y agoI have this setup running on a Synology NAS at home. I'm currently syncing all of my starred github repos to local storage using a short bash script that runs once a week. Once a repo is in gitea, it pulls any new updates from github every 6 hours or so. It's mostly for archival purposes, just in case something majorly bad happens to github.
- pdimitar 3y agoWould you share your setup? I'm interested in building the same but if yours already works well then I see no point in duplicating important work.
- sklarsa 3y agoSure! Here's a gist to the script: https://gist.github.com/sklarsa/845152721ee9292eb01f70756b893690 https://gist.github.com/sklarsa/845152721ee9292eb01f70756b89... As for gitea, I'm just hosting it using Docker and orchestrating using a simple docker-compose file that maps the gitea data directory to a Volume on the synology: https://gist.github.com/sklarsa/0dd6d6094dac6bf6e7bf61df9ca52adc https://gist.github.com/sklarsa/0dd6d6094dac6bf6e7bf61df9ca5... It's all hosted on my private network at home.