Sync Github repos to Gitea
Go to file
Nicco 309e939a05
Merge pull request #4 from cupcakearmy/move-to-bun
Move to bun
2024-01-27 01:27:50 +01:00
.github/workflows workflow 2023-03-09 02:24:53 +01:00
src logging 2024-01-27 01:26:37 +01:00
.dockerignore move to bun 2024-01-27 01:26: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
Dockerfile move to bun 2024-01-27 01:26:52 +01:00
README.md move to bun 2024-01-27 01:26:52 +01:00
bun.lockb move to bun 2024-01-27 01:26:52 +01:00
docker-compose.yaml move to bun 2024-01-27 01:26:52 +01:00
package.json move to bun 2024-01-27 01:26: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 set up 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 (deprecated)
# or
# Fine Grained token (Metadata and Content read-only scopes required)
GITHUB_TOKEN=

# Host of the Gitea server
GITEA_HOST=
# Gitea token (scopes: repos: read and write; user: read)
GITEA_TOKEN=

# OPTIONAL

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

Known limitations