Исправление путей для repo

Добавление возможности работать с несколькими репозиториями
This commit is contained in:
2025-08-31 13:15:51 +03:00
parent 90ba3c09eb
commit f8d181ed6d
4 changed files with 178 additions and 46 deletions

View File

@@ -19,15 +19,15 @@
package config
type Config struct {
Git Git `toml:"git" envPrefix:"GIT_"`
Webhook Webhook `toml:"webhook" envPrefix:"WEBHOOK_"`
ReposBaseDir string `toml:"reposBaseDir" env:"REPOS_BASE_DIR"`
Repositories map[string]GitRepo `toml:"repositories"`
Webhook Webhook `toml:"webhook" envPrefix:"WEBHOOK_"`
}
type Git struct {
RepoDir string `toml:"repoDir" env:"REPO_DIR"`
RepoURL string `toml:"repoURL" env:"REPO_URL"`
Commit Commit `toml:"commit" envPrefix:"COMMIT_"`
Credentials Credentials `toml:"credentials" envPrefix:"CREDENTIALS_"`
type GitRepo struct {
RepoURL string `toml:"repoURL"`
Commit Commit `toml:"commit"`
Credentials Credentials `toml:"credentials"`
}
type Credentials struct {