-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
71 lines (65 loc) · 1.95 KB
/
config.example.yaml
File metadata and controls
71 lines (65 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# config.yaml
# Global defaults (optional)
defaults:
period: "30m" # Default sync period for all repos
backup_retention: 5 # Keep last 5 backups per branch
log_level: "normal" # Options: "verbose", "normal", "quiet"
max_concurrent_repos: 3 # Max repos to sync simultaneously (prevents memory spikes)
repositories:
# Repository with specific branches and HTTP auth
- name: "main-app"
url: "https://github.com/username/main-app.git"
branches: [ "main", "develop", "staging" ]
path: "github/main-app"
period: "5m"
auth:
type: "http"
username: "your-username"
password: "$REPOVAULT_GITHUB_TOKEN"
# Repository with all branches (*) and SSH auth
- name: "api-service"
url: "git@github.com:username/api-service.git"
branches: [ "*" ] # Sync all branches
path: "github/api-service"
period: "10m"
auth:
type: "ssh"
ssh_key_path: "/root/.ssh/id_rsa"
ssh_key_password: "$REPOVAULT_SSH_KEY_PASSWORD"
# Public repository (no auth needed)
- name: "public-lib"
url: "https://github.com/open-source/library.git"
branches: [ "main" ]
path: "github/public-lib"
period: "30m"
auth:
type: "none"
# GitLab repository with HTTP auth
- name: "infrastructure"
url: "https://gitlab.com/company/infrastructure.git"
branches: [ "master", "production" ]
path: "gitlab/infrastructure"
period: "15m"
auth:
type: "http"
username: "deploy-user"
password: "$REPOVAULT_GITLAB_TOKEN"
# Bitbucket repository with SSH
- name: "legacy-system"
url: "git@bitbucket.org:company/legacy.git"
branches: [ "master" ]
path: "bitbucket/legacy"
period: "1h"
auth:
type: "ssh"
ssh_key_path: "/root/.ssh/bitbucket_key"
# Self-hosted Git with custom branch
- name: "internal-tools"
url: "https://git.company.com/tools/internal.git"
branches: [ "release" ]
path: "internal/tools"
period: "20m"
auth:
type: "http"
username: "backup-service"
password: "$REPOVAULT_CUSTOM_TOKEN"