Mirror your starred Github repos to a Gitea organization
Go to file
Askill dd82f9d970 clean up 2024-04-06 16:55:23 +02:00
.env added docker compose support and readme 2024-04-06 16:54:36 +02:00
Dockerfile fixed typoe 2024-04-06 16:37:16 +02:00
README.md added docker compose support and readme 2024-04-06 16:54:36 +02:00
docker-compose.yaml added docker compose support and readme 2024-04-06 16:54:36 +02:00
github-git-mirror.sh added docker compose support and readme 2024-04-06 16:54:36 +02:00

README.md

Mirror your starred Github repos to a Gitea organization

Inspiration for this script:

Proposal: Mirror an entire github organization into gitea organization

Usage

The script runs forever, every 12 hours it executes API calls to retrieve either your starred or public repositories and mirrors them to your local gitea( or forks from this project) server.

Feel free to change it to a one time only script and calling it in a cronjob.

Docker Compose

edit .env the way you need it

docker-compose up --build

Bash

export LOCAL_GIT_ACCESS_TOKEN="your_access_token"
export LOCAL_GIT_URL="your_git_url"
export GIT_USER="your_git_user"
export TARGET_ORG="your_target_org"
export MODE="your_mode"

bash github-git-mirror.sh "${GIT_USER}" "${TARGET_ORG}" "${MODE}"