From 4026efda26ac5529fd0193fd4685b706570c5439 Mon Sep 17 00:00:00 2001 From: Gitea Sync Bot Date: Sat, 19 Apr 2025 23:13:00 +0100 Subject: [PATCH] Sync gitea-github-sync from Gitea to monorepo Repository: admin/gitea-github-sync Timestamp: 2025-04-19_23-12-57 Target directory: projects/gitea-github-sync --- projects/gitea-github-sync/.gitignore | 5 +++++ projects/gitea-github-sync/README.md | 3 +++ projects/gitea-github-sync/compose.yaml | 29 +++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 projects/gitea-github-sync/.gitignore create mode 100644 projects/gitea-github-sync/README.md create mode 100644 projects/gitea-github-sync/compose.yaml diff --git a/projects/gitea-github-sync/.gitignore b/projects/gitea-github-sync/.gitignore new file mode 100644 index 0000000..b015684 --- /dev/null +++ b/projects/gitea-github-sync/.gitignore @@ -0,0 +1,5 @@ +.venv/ +__pycache__/ +*.pyc +.DS_Store +.vscode/ diff --git a/projects/gitea-github-sync/README.md b/projects/gitea-github-sync/README.md new file mode 100644 index 0000000..e77ccaf --- /dev/null +++ b/projects/gitea-github-sync/README.md @@ -0,0 +1,3 @@ +# gitea-gitlab-sync + +This is the gitea-gitlab-sync repository. Update this README with relevant project details. diff --git a/projects/gitea-github-sync/compose.yaml b/projects/gitea-github-sync/compose.yaml new file mode 100644 index 0000000..ca55bd5 --- /dev/null +++ b/projects/gitea-github-sync/compose.yaml @@ -0,0 +1,29 @@ +version: '3' + +services: + gitea-github-sync: + image: terrifiedbug/gitea-github-sync:latest + container_name: gitea-github-sync-test + restart: unless-stopped + env_file: + - .env + environment: + # Required configuration + - GITEA_URL=${GITEA_URL} # Your internal Gitea URL + - GITEA_TOKEN=${GITEA_TOKEN} # Gitea token with read access + - GITHUB_REPO=${GITHUB_REPO} # GitHub monorepo (org/repo) + - GITHUB_TOKEN=${GITHUB_TOKEN} # GitHub token with write access + # Optional configuration + - MONOREPO_SUBDIR=${MONOREPO_SUBDIR} # Subdirectory for projects in monorepo + - SYNC_INTERVAL=${SYNC_INTERVAL} # Sync interval in seconds (1 hour) + - IGNORE_REPOS=${IGNORE_REPOS} # Repos to ignore (comma-separated) + #- SYNC_SPECIFIC_REPO=${SYNC_SPECIFIC_REPO} # To sync only one repo (uncomment if needed) + #- ONE_TIME_RUN=${ONE_TIME_RUN} # Run once and exit (uncomment if needed) + - DEFAULT_BRANCH=${DEFAULT_BRANCH} # Default branch name + - TZ=${TZ} # Timezone + volumes: + # Persist repository cache between container restarts + - gitea_sync_data:/app/cache + +volumes: + gitea_sync_data: # Using a named volume instead of a bind mount