Lets see if this works
All checks were successful
Build (artifact) / build (push) Successful in 1m13s

This commit is contained in:
2026-06-29 07:57:03 -04:00
parent 6aacbfbb71
commit c01195643a
13 changed files with 112 additions and 54 deletions

View File

@@ -67,13 +67,14 @@ func (d *Daemon) Tick() {
}
gitWorkspace := &common.GitWorkspace{
Domain: domainStr,
URL: app.Config().Git.Server + "/" + config.Git.OrgName + "/" + domainStr + domainConfig.Repo.RepoSuffix + ".git",
Storage: memory.NewStorage(),
FS: memfs.New(),
}
// Ex: https://git.example.com/Org/Repo-suffix.git
// Clones repo and stores in gitWorkspace, skip if clone fails (doesn't exist?)
repoUrl := app.Config().Git.Server + "/" + config.Git.OrgName + "/" + domainStr + domainConfig.Repo.RepoSuffix + ".git"
err := common.CloneRepo(repoUrl, gitWorkspace, common.Client, config)
err := gitWorkspace.CloneRepo(common.Client, config)
if err != nil {
fmt.Printf("Error cloning domain repo %s: %v\n", domainStr, err)
continue
@@ -121,7 +122,8 @@ func (d *Daemon) Tick() {
continue
}
err = common.WriteCommitHash(headRef.Hash().String(), config, domainConfig)
dataRoot := common.EffectiveDataRoot(config, domainConfig)
err = client.WriteCommitHash(headRef.Hash().String(), dataRoot)
if err != nil {
fmt.Printf("Error writing commit hash: %v\n", err)
continue