Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TimeLayOutSet = "20060102150405.000" TxTcrHost = "ccr.ccs.tencentyun.com" TxTcrNamespaceDevopsScq = "devops_scq" LocalBuildBaseDir = "/data/devops/build/" GitlabCICDRepoAddr = "ssh://git@gitlab.scq.com:522/devops/cicd.git" CICDRepoLocalPath = "devops_cicd" )
View Source
var (
LocalDeployBaseDir = "/data/devops/deploy/"
)
Functions ¶
func ReplaceAllWithFile ¶
replace func, generate by gpt4.0
Types ¶
type ConfigCICD ¶
type ConfigCICD struct {
BuildHistoryReserve int
}
type DockerBuild ¶
type DockerBuild struct { ProjectName string `json:"project_name"` Group string `json:"group"` RepoSSH string `json:"repo_ssh"` ProjectLocalPath string `json:"-"` TimestampNowDir string `json:"-"` WorkDir string `json:"-"` Type string `json:"project_type"` Env string `json:"project_env"` Tag string `json:"tag_or_branch"` Image string `json:"-"` }
use ~/.ssh/id_rsa as git repo private key
func NewDockerBuild ¶
func NewDockerBuild(name, group, sshAddr, buildType, buildEnv, tagOrbranch string) *DockerBuild
first use Dockerfile of devops/cicd project.Dockerfile_<buildEnv> second use Dockerfile of devops/cicd project.Dokerfile third use Dockerfile of repo.Dockerfile
func (*DockerBuild) Build ¶
func (d *DockerBuild) Build() gin.HandlerFunc
func (*DockerBuild) DoBuild ¶
func (d *DockerBuild) DoBuild() error
func (*DockerBuild) SetAllPath ¶
func (d *DockerBuild) SetAllPath()
type K8sDeploy ¶
type K8sDeploy struct { AppName string `json:"app_name"` Group string `json:"group"` Namespace string `josn:"namespace"` WorkDir string `json:"-"` Type string `json:"project_type"` Env string `json:"project_env"` Tag string `json:"tag_or_branch"` Image string `json:"-"` Client *kubernetes.Clientset `json:"-"` }
func NewK8sDeploy ¶
Click to show internal directories.
Click to hide internal directories.