Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { JobType string `yaml:"job_type"` DockerRegistry *DockerRegistry `yaml:"docker_registry"` DockerBuildCtx *DockerBuildCtx `yaml:"build_ctx"` OnSetup string `yaml:"setup,omitempty"` ReleaseImages []RepoImage `yaml:"release_images"` }
Context ...
type DockerBuildCtx ¶
type DockerBuildCtx struct { WorkDir string `yaml:"work_dir"` DockerFile string `yaml:"docker_file"` ImageName string `yaml:"image_name"` BuildArgs string `yaml:"build_args"` ImageReleaseTag string `yaml:"image_release_tag,omitempty"` }
DockerBuildCtx ... Docker build参数 WorkDir: docker build执行路径 DockerFile: dockerfile名称, 默认为Dockerfile ImageBuild: build image镜像全称, e.g. xxx.com/release-candidates/image:tag
func (*DockerBuildCtx) GetDockerFile ¶
func (buildCtx *DockerBuildCtx) GetDockerFile() string
GetDockerFile ...
type DockerRegistry ¶
type DockerRegistry struct { Host string `yaml:"host"` UserName string `yaml:"username"` Password string `yaml:"password"` Namespace string `yaml:"namespace"` }
DockerRegistry registry host/user/password
Click to show internal directories.
Click to hide internal directories.