Question: How to best automate loading up a blank Gitea with our stack and setup mirroring #27
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/hosting#27
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: I can reliably stand up the
package-registry
stack (which maybe isn't a broad enough name) but am not sure what the next step would be to efficiently and reliably "load" all our GH repos, mirrored from GH. It's easy enough to do manually :(Of course, the goal is the reverse the mirror at some point but IMO a good first step is to get S-O to spin up gitea with all of GH mirrored; this would also be a great task to assign the membership...use S-O to host a mirror of our stack in gitea. Once we switch, S-O would be configured to run a gitea mirror from the authoritative gitea.
https://docs.gitea.io/en-us/repo-mirror/ --> nothing about automating this
https://github.com/maxgallup/gitea-migrate --> most recent tool I could find
I think this would be a case of reviewing the GT code, finding the back-end area that implements the migrate button and then seeing if it is wired up to the API. There may be some chatter about this in their issues or Discord.
If it's not API-aware, then next step would be to add that code, or wait for someone else to do it.
We now have a tool to help with this: https://github.com/cerc-io/hosting/blob/main/gitea/migrate-repo.sh
solved by removing quotes around
export CERC_GITEA_API_URL='gitea.local:3000'
got it working, had to create a new token that had the
repo
scope. The default token from running thepackage-registry
stack hadpackage
andsudo
scopes ... I guess sudo doesn't mean what I expected to mean 🤷#42