Add cross-platform prebuilt release workflow
Build and Push Docker images to Docker Hub / build-and-push (push) Has been cancelled

This commit is contained in:
Ilya Groshev
2026-05-22 23:12:08 +03:00
parent 810adcf990
commit 2d0c0d8ef0
9 changed files with 368 additions and 130 deletions
+22 -13
View File
@@ -74,14 +74,21 @@ func main() {
fmt.Print(banner)
sourceMode = isSourceCheckout()
if !*setupOnly {
validateAssets()
validateTools()
validateProtocIncludes()
runProtoc()
backupGameDB()
runMigrate()
downloadDeps()
if sourceMode {
validateTools()
validateProtocIncludes()
runProtoc()
backupGameDB()
runMigrate()
downloadDeps()
} else {
backupGameDB()
runMigrateEmbedded()
}
}
ip, cfg, firstRun := resolveIP(*preferSaved)
@@ -901,13 +908,15 @@ func launchDev(ip string, p ports) {
}
devBin := filepath.Join("bin", "dev"+ext)
_ = spinner.New().Title(" Building services...").Action(func() {
if err := os.MkdirAll("bin", 0755); err != nil {
fmt.Fprintf(os.Stderr, " Failed to create bin/: %v\n", err)
os.Exit(1)
}
runQuiet(exec.Command("go", "build", "-o", devBin, "./cmd/dev"), "build dev")
}).Run()
if sourceMode {
_ = spinner.New().Title(" Building services...").Action(func() {
if err := os.MkdirAll("bin", 0755); err != nil {
fmt.Fprintf(os.Stderr, " Failed to create bin/: %v\n", err)
os.Exit(1)
}
runQuiet(exec.Command("go", "build", "-o", devBin, "./cmd/dev"), "build dev")
}).Run()
}
devArgs := []string{
"--grpc.listen", fmt.Sprintf("0.0.0.0:%d", p.GRPC),