update readme

This commit is contained in:
yoan
2025-01-13 10:43:29 +08:00
parent 9f7e0f8a26
commit 45f9913bdb
4 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ package deployer
import (
"fmt"
"strconv"
"github.com/usual2970/certimate/internal/domain"
"github.com/usual2970/certimate/internal/pkg/core/deployer"
@@ -249,7 +248,7 @@ func createDeployer(options *deployerOptions) (deployer.Deployer, logger.Logger,
return nil, nil, fmt.Errorf("failed to decode provider access config: %w", err)
}
sshPort, _ := strconv.ParseInt(access.Port, 10, 32)
sshPort := access.Port
deployer, err := providerSSH.NewWithLogger(&providerSSH.SshDeployerConfig{
SshHost: access.Host,
SshPort: int32(sshPort),

View File

@@ -96,7 +96,7 @@ type AccessConfigForQiniu struct {
type AccessConfigForSSH struct {
Host string `json:"host"`
Port string `json:"port"`
Port int `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
Key string `json:"key"`