Sync Github repos to Gitea
Go to file
cupcakearmy cf19e698b3
stable version
2023-03-09 02:34:01 +01:00
.github/workflows workflow 2023-03-09 02:24:53 +01:00
src workflow 2023-03-09 02:24:53 +01:00
.dockerignore initial commit 2023-03-09 02:09:52 +01:00
.env.sample workflow 2023-03-09 02:24:53 +01:00
.gitignore initial commit 2023-03-09 02:09:52 +01:00
.nvmrc initial commit 2023-03-09 02:09:52 +01:00
Dockerfile initial commit 2023-03-09 02:09:52 +01:00
README.md stable version 2023-03-09 02:34:01 +01:00
docker-compose.yaml readme 2023-03-09 02:30:33 +01:00
package.json stable version 2023-03-09 02:34:01 +01:00
pnpm-lock.yaml initial commit 2023-03-09 02:09:52 +01:00
tsconfig.json initial commit 2023-03-09 02:09:52 +01:00

README.md

Backup Github repos to Gitea

Simple docker image that syncs your Github repos to a given Gitea server. It takes all the repos (public and private) and sets up a mirror. Private repos will stay a private mirror. Repos that are already setup will be skipped.

Quick Start

Create a docker-compose.yaml and .env (see .env.sample). Create and insert tokens and you are ready to go.

version: '3.8'

services:
  sync:
    image: cupcakearmy/gitea-sync:1
    restart: unless-stopped
    env_file: .env

Configuration

# Github PAT
# Also works with the new fine grained, read-only tokens
GITHUB_TOKEN=

# Host of the Gitea server
GITEA_HOST=
# Gitea token
GITEA_TOKEN=

# OPTIONAL

# Cron schedule
CRON="0 */2 * * *"

Known limitations