Skip to content

nmasse-itix/github-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 github-mirror

Pre-requisites

Usage

cat > config.yaml <<EOF
GitHub:
  PersonalToken: GITHUB_PERSONAL_ACCESS_TOKEN
Gitea:
  ServerURL: https://GITEA_SERVER
  PersonalToken: GITEA_ACCESS_TOKEN
EOF
./github-mirror config.yaml

In a crontab

In a crontab, you can add the LogFile directive to config.yaml to collect logs over multiple runs.