Sync Github repos to Gitea
Go to file
dependabot[bot] 5ab4af8515
Bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 13:58:53 +00:00
.github Bump docker/login-action from 2 to 3 2024-12-17 13:58:53 +00:00
.vscode move to deno 2024-12-15 22:55:42 +01:00
src add run_once and warning about tangling repos 2024-12-16 12:24:25 +01:00
.dockerignore move to deno 2024-12-15 22:55:42 +01:00
.env.sample workflow 2023-03-09 02:24:53 +01:00
.gitignore initial commit 2023-03-09 02:09:52 +01:00
deno.jsonc move to deno 2024-12-15 22:55:42 +01:00
deno.lock move to deno 2024-12-15 22:55:42 +01:00
docker-compose.yaml move to bun 2024-01-27 01:26:52 +01:00
Dockerfile move to deno 2024-12-15 22:55:42 +01:00
README.md add run_once and warning about tangling repos 2024-12-16 12:24:25 +01:00

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 * * *"

# Debug level
DEBUG_LEVEL=debug

# Only run one, skip cron and exit
RUN_ONCE=1

Known limitations