feat: Updated docker file
Server Deploy / deploy (push) Successful in 2m35s

This commit is contained in:
2026-07-28 16:04:51 +01:00
parent f46fb7fc0e
commit bc6c7cdb5a
9 changed files with 83 additions and 97 deletions
+2 -9
View File
@@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
"sync"
@@ -80,10 +79,7 @@ type KeyGenParams struct {
}
func GetLatestAgentVersion() (string, error) {
giteaHost := os.Getenv("GITEA_HOST")
if giteaHost == "" {
giteaHost = "gitea.example.com"
}
giteaHost := "gitea.hostxtra.co.uk"
url := fmt.Sprintf("https://%s/api/v1/repos/mrhid6/vantage/releases?limit=20", giteaHost)
resp, err := http.Get(url)
if err != nil {
@@ -119,10 +115,7 @@ func DispatchUpdateAgent(serverID string) (string, error) {
return "", fmt.Errorf("get latest version: %w", err)
}
giteaHost := os.Getenv("GITEA_HOST")
if giteaHost == "" {
giteaHost = "gitea.example.com"
}
giteaHost := "gitea.hostxtra.co.uk"
cmdID := uuid.New().String()
cmd := &pb.ServerCommand{