You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
812 B
812 B
GitHub Repository mirroring for Gitea
Context
Gitea is a nice alternative to GitHub, easy to setup. When using it as a mirror from GitHub, you might want all repositories created in GitHub to appear automatically in Gitea.
Compilation
go build -o mirror-github
Pre-requisites
- Generate a GitHub Personal Access Token
- Generate a Gitea Access Token from
https://GITEA_SERVER/user/settings/applications
Usage
cat > mirror-github.yaml <<EOF
GitHub:
PersonalToken: GITHUB_PERSONAL_ACCESS_TOKEN
Gitea:
ServerURL: https://GITEA_SERVER
PersonalToken: GITEA_ACCESS_TOKEN
EOF
./mirror-github
In a crontab
In a crontab, you can add the LogFile directive to mirror-github.yaml to collect logs over multiple runs.