chore: update main.go
This commit is contained in:
24
main.go
24
main.go
@@ -168,18 +168,18 @@ func Deploy(cfg Config) error {
|
|||||||
id := uuid.New()
|
id := uuid.New()
|
||||||
|
|
||||||
payload := map[string]interface{}{
|
payload := map[string]interface{}{
|
||||||
"method": "repository",
|
"method": "repository",
|
||||||
"type": "standalone",
|
"type": "standalone",
|
||||||
"Name": cfg.StackName,
|
"Name": cfg.StackName,
|
||||||
"RepositoryURL": cfg.RepoURL,
|
"RepositoryURL": cfg.RepoURL,
|
||||||
"RepositoryReferenceName": cfg.RepoRef,
|
"RepositoryReferenceName": cfg.RepoRef,
|
||||||
"ComposeFile": cfg.RepoComposeFile,
|
"ComposeFile": cfg.RepoComposeFile,
|
||||||
"AdditionalFiles": []string{},
|
"AdditionalFiles": []string{},
|
||||||
"RepositoryAuthenticationType": 0,
|
"RepositoryAuthentication": true,
|
||||||
"RepositoryUsername": cfg.RepoUsername,
|
"RepositoryUsername": cfg.RepoUsername,
|
||||||
"RepositoryPassword": cfg.RepoPassword,
|
"RepositoryPassword": cfg.RepoPassword,
|
||||||
"Env": envVars,
|
"Env": envVars,
|
||||||
"TLSSkipVerify": cfg.TLSSkipVerify,
|
"TLSSkipVerify": cfg.TLSSkipVerify,
|
||||||
"AutoUpdate": map[string]interface{}{
|
"AutoUpdate": map[string]interface{}{
|
||||||
"Interval": "",
|
"Interval": "",
|
||||||
"Webhook": id.String(),
|
"Webhook": id.String(),
|
||||||
|
|||||||
Reference in New Issue
Block a user