Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvBuildExtraArgs = "BUILD_EXTRA_ARGS" EnvBuildArgPrefix = "BUILD_ARG_" // EnvBuildTags is a comma-separated list of // tags that should be added to the image. Tags // are only added on the trunk. EnvBuildTags = "BUILD_TAGS" // EnvBuildDockerfile dictates where Dockerfile-based recipes // should look for the Dockerfile EnvBuildDockerfile = "BUILD_DOCKERFILE" // EnvBuildGoImportPath dictates where Go-based recipes should // look for the main.go file EnvBuildGoImportPath = "BUILD_GO_IMPORTPATH" // EnvBuildImageParent dictates what the build tool should use as a base layer. // Some recipes (e.g. BuildKit) will ignore this. EnvBuildImageParent = "BUILD_IMAGE_PARENT" // EnvBuildSLSABuildType overrides the SLSA build type field. EnvBuildSLSABuildType = "BUILD_SLSA_BUILD_TYPE" // EnvBuildCacheEnabled dictates whether we should instruct build tools // to cache files. Disabling this may fix some problems at the cost of performance. EnvBuildCacheEnabled = "BUILD_CACHE_ENABLED" // EnvBuildCachePath describes the directory that // we should instruct build tools to store their temporary files. EnvBuildCachePath = "BUILD_CACHE_PATH" EnvDockerConfig = "DOCKER_CONFIG" )
View Source
const ( DefaultDockerfile = "Dockerfile" DefaultCacheName = ".cache" )
Variables ¶
This section is empty.
Functions ¶
func WriteDockerCFG ¶
func WriteDockerCFG(ctx *BuildContext) error
Types ¶
type BuildCache ¶ added in v1.3.0
type BuildContext ¶
type BuildContext struct { Builder string BuildID string Root string Context string Image ImageConfig Tags []string FQTags []string Dockerfile DockerfileConfig Go GoConfig Repo BuildRepo Cache BuildCache StartTime string Provider string ConfigPath string ExtraArgs []string }
func (*BuildContext) Auth ¶ added in v1.5.1
func (c *BuildContext) Auth() auth.Auth
func (*BuildContext) DockerCFG ¶
func (c *BuildContext) DockerCFG() string
func (*BuildContext) Normalise ¶
func (c *BuildContext) Normalise()
type BuildRecipe ¶
type Dockerfile ¶ added in v1.4.2
type Dockerfile struct {
Content DockerfileContent `yaml:"content"`
}
type DockerfileConfig ¶
type DockerfileContent ¶ added in v1.4.2
type ImageConfig ¶
type Recipes ¶
type Recipes struct { Build map[string]BuildRecipe `yaml:"build"` Dockerfiles map[string]Dockerfile `yaml:"dockerfiles"` }
func ReadConfiguration ¶
func ReadConfiguration(path string, ctx *BuildContext) (*Recipes, error)
func ReadConfigurations ¶ added in v1.4.0
func ReadConfigurations(ctx *BuildContext, paths ...string) (*Recipes, error)
Click to show internal directories.
Click to hide internal directories.