chore: update main.go

This commit is contained in:
etwodev
2025-10-05 19:47:38 +01:00
parent afc980507c
commit 90a5de2bdf
3 changed files with 9 additions and 1 deletions

2
go.mod
View File

@@ -1,3 +1,5 @@
module git.etwo.dev/actions/portable
go 1.23.2
require github.com/google/uuid v1.6.0

2
go.sum
View File

@@ -0,0 +1,2 @@
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

View File

@@ -11,6 +11,8 @@ import (
"os"
"strconv"
"time"
"github.com/google/uuid"
)
// -------------------------------
@@ -163,6 +165,8 @@ func Deploy(cfg Config) error {
}
}
id := uuid.New()
payload := map[string]interface{}{
"method": "repository",
"type": "standalone",
@@ -178,7 +182,7 @@ func Deploy(cfg Config) error {
"TLSSkipVerify": cfg.TLSSkipVerify,
"AutoUpdate": map[string]interface{}{
"Interval": "",
"Webhook": "",
"Webhook": id.String(),
"ForceUpdate": false,
"ForcePullImage": false,
},