Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate renders CI configuration for the given provider and context. If customTemplateDir is non-empty, templates are loaded from that directory instead of the provider's embedded templates.
func RegisterProvider ¶
func RegisterProvider(p *Provider)
RegisterProvider registers a CI provider.
Types ¶
type CIConfigContext ¶
type CIConfigContext struct {
Registry *model.RegistryConfig
Cache *model.CacheConfig
}
CIConfigContext holds project configuration relevant to CI.
func (*CIConfigContext) RegistryHost ¶ added in v0.0.7
func (c *CIConfigContext) RegistryHost() string
RegistryHost returns the registry hostname (without path) for login. E.g., "docker.io/timoreymann" -> "docker.io"
type CIContext ¶
type CIContext struct {
Images []CIImage
Platforms []string
Stages []string
Config CIConfigContext
Artifacts bool
Command string
Version string
ImageName string
ProjectPath string // non-empty when --project is not the default "."
TemplateOptions map[string]string
}
CIContext holds all data needed to render CI templates.
func BuildCIContext ¶
func BuildCIContext(project *model.ContainerHiveProject, artifacts bool) (*CIContext, error)
BuildCIContext creates a CIContext from a ContainerHive project.
Click to show internal directories.
Click to hide internal directories.