GitHub Repository mirroring for Gitea
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.
Nicolas Massé c421ca0e12 fix null pointer exception 4 years ago
.gitignore release script + doc 6 years ago
Containerfile add a CA bundle 4 years ago
LICENSE first commit 6 years ago
README.md doc 6 years ago
ca-bundle.crt add a CA bundle 4 years ago
go.mod config file as first cli argument 6 years ago
go.sum first commit 6 years ago
main.go fix null pointer exception 4 years ago

README.md

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.