chore: update main.go
This commit is contained in:
6
main.go
6
main.go
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user