This commit is contained in:
parent
be5ed05175
commit
f490a8e309
@ -2,7 +2,6 @@ package deploy
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
@ -117,10 +116,9 @@ var DeployCommands = []*cli.Command{
|
|||||||
yaml.Unmarshal(raw, &site)
|
yaml.Unmarshal(raw, &site)
|
||||||
}
|
}
|
||||||
|
|
||||||
raw, _ := json.Marshal(site)
|
|
||||||
url := fmt.Sprintf("/webhooks/sync/%s", ctx.Args().Get(1))
|
url := fmt.Sprintf("/webhooks/sync/%s", ctx.Args().Get(1))
|
||||||
client := fiber.Put(server.Url+url).
|
client := fiber.Put(server.Url+url).
|
||||||
Body(raw).
|
JSON(site).
|
||||||
BasicAuth("RoadSign CLI", server.Credential)
|
BasicAuth("RoadSign CLI", server.Credential)
|
||||||
|
|
||||||
if status, data, err := client.Bytes(); len(err) > 0 {
|
if status, data, err := client.Bytes(); len(err) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user