refactor: deprecate internal/deployer/deployer.getDeployVariables

This commit is contained in:
Fu Diwei
2024-10-31 19:59:21 +08:00
parent 0ceb44a7cd
commit 0d96ea9eef
3 changed files with 34 additions and 24 deletions

View File

@@ -50,7 +50,7 @@ func (d *WebhookDeployer) Deploy(ctx context.Context) error {
Domain: d.option.Domain,
Certificate: d.option.Certificate.Certificate,
PrivateKey: d.option.Certificate.PrivateKey,
Variables: getDeployVariables(d.option.DeployConfig),
Variables: d.option.DeployConfig.GetConfigAsVariables(),
}
body, _ := json.Marshal(data)
resp, err := xhttp.Req(access.Url, http.MethodPost, bytes.NewReader(body), map[string]string{