feat: update git-sync 0.21.0

This commit is contained in:
arch3rPro
2026-02-27 22:38:58 +08:00
parent e7bb2e0a4e
commit 7a44fe304b
4 changed files with 3 additions and 4 deletions

View File

@@ -0,0 +1,41 @@
# Git Sync Configuration
# Repository settings
include_forks: false # Include forked repositories
include_wiki: true # Include wiki's
include_repos: [] # Include specific repositories
exclude_repos: [] # Exclude specific repositories
include_orgs: [] # Include repositories from specific organizations
exclude_orgs: [] # Exclude repositories from specific organizations
raw_git_urls: [] # Raw valid git URLs
# Authentication
username: <username>
tokens: [<token 1>]
# Server settings
backup_dir: /path/to/backup
clone_type: bare # Clone type: bare, shallow, mirror or full. Default: bare
cron: 0 0 * * * # run every 24 hours at 00:00
concurrency: 5
retry:
count: 3
delay: 10 # in seconds
platform: github
server:
domain: github.com
protocol: https
notification:
enabled: true
only_failures: false
ntfy:
topic: 'backup'
server: 'https://ntfy.sh' # Optional
username: 'akash' # Optional
password: 'password' # Optional
priority: 4 # Optional (1-5)
tags: ['backup'] # Optional
gotify:
url: 'http://localhost:2444'
app_token: 'your_app_token'
priority: 4 # Optional (1-5)

View File

@@ -0,0 +1,30 @@
additionalProperties:
formFields:
- default: ./config.yaml
edit: true
envKey: GITSYNC_CONFIG_PATH
labelEn: Config Path
labelZh: 配置文件路径
required: true
type: text
- default: ./backups
edit: true
envKey: GITSYNC_BACKUP_PATH
labelEn: Backup Path
labelZh: 备份目录
required: true
type: text
- default: 1000
edit: true
envKey: PUID
labelEn: PUID
labelZh: 用户ID(PUID)
required: true
type: number
- default: 1000
edit: true
envKey: PGID
labelEn: PGID
labelZh: 用户组ID(PGID)
required: true
type: number

View File

@@ -0,0 +1,11 @@
services:
git-sync:
image: ghcr.io/akashrajpurohit/git-sync:v0.21.0
container_name: git-sync
environment:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- ${GITSYNC_CONFIG_PATH}:/git-sync/config.yaml
- ${GITSYNC_BACKUP_PATH}:/backups
restart: unless-stopped