summaryrefslogtreecommitdiff
path: root/doDebian.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 03:33:17 -0500
committerJeff Carr <[email protected]>2025-10-03 03:33:17 -0500
commit62abca26fd749a3fcb7838479e90bef7db747d0f (patch)
treec7be891cefa186e0c9cbd62dc8f5f2de19045d2a /doDebian.go
parentaf388f137769fcee7aacac0b69ee20e47a996c71 (diff)
build debs using rill
Diffstat (limited to 'doDebian.go')
-rw-r--r--doDebian.go29
1 files changed, 28 insertions, 1 deletions
diff --git a/doDebian.go b/doDebian.go
index 160a01d..21571c2 100644
--- a/doDebian.go
+++ b/doDebian.go
@@ -4,6 +4,7 @@
package main
import (
+ "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -15,11 +16,37 @@ func doDebian() {
}
}
- buildDeb()
+ initForge()
+
+ found := gitpb.NewRepos()
+ for check := range me.forge.Repos.IterAll() {
+ if me.forge.Config.IsReadOnly(check.GetGoPath()) {
+ continue
+ }
+
+ if !check.IsBinary() {
+ continue
+ }
+
+ if check.IsGoPlugin() {
+ continue
+ }
+ found.Append(check)
+ }
+ me.forge.PrintForgedTable(found)
if argv.DryRun {
okExit("")
}
+ me.forge.ConfigRill(5, 5)
+ stats := me.forge.RunOnRepos(found, buildDeb)
+ for s, stat := range stats {
+ log.Info(s, stat.Err)
+ if stat.Err != nil {
+ badExit(stat.Err)
+ }
+ }
+
exitOnErrorRealtime([]string{"do-aptly"})
}