build

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildArgsAndTarget

func GetBuildArgsAndTarget(
	parsedConfig *config.SubstitutedConfig,
	extendedBuildInfo *feature.ExtendedBuildInfo,
) (map[string]string, string)

func GetImageName

func GetImageName(localWorkspaceFolder, prebuildHash string) string

func RewriteDockerfile

func RewriteDockerfile(
	dockerfileContent string,
	extendedBuildInfo *feature.ExtendedBuildInfo,
) (string, error)

Types

type BuildOptions

type BuildOptions struct {
	BuildArgs map[string]string
	Labels    map[string]string

	CliOpts []string

	Images    []string
	CacheFrom []string
	CacheTo   []string

	Dockerfile string
	Context    string
	Contexts   map[string]string

	Target string

	Load   bool
	Push   bool
	Upload bool
}

func NewOptions

func NewOptions(params NewOptionsParams) (*BuildOptions, error)

type NewOptionsParams added in v0.10.0

type NewOptionsParams struct {
	DockerfilePath    string
	DockerfileContent string
	ParsedConfig      *config.SubstitutedConfig
	ExtendedBuildInfo *feature.ExtendedBuildInfo
	ImageName         string
	Options           provider.BuildOptions
	PrebuildHash      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL