Documentation
¶
Index ¶
Constants ¶
View Source
const BuildPlatformEnvironmentVariable = "CODEFLY_BUILD_PLATFORM"
BuildPlatformEnvironmentVariable overrides the target build platform without a code change or a core release, for hosts deploying to a non-amd64 (e.g. arm64) node pool. It is only consulted when BuilderConfiguration.Platform is empty.
View Source
const DefaultBuildPlatform = "linux/amd64"
DefaultBuildPlatform is the platform service images target when the caller does not specify one. Deployment images are pulled onto amd64 nodes, so the build must produce amd64 regardless of the host's native architecture — otherwise an image built on Apple Silicon (arm64) is pushed and then crashes with `exec format error` on the cluster.
Variables ¶
This section is empty.
Functions ¶
func IsValidDockerImageName ¶ added in v0.1.39
Types ¶
type Builder ¶
type Builder struct {
BuilderConfiguration
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(cfg BuilderConfiguration) (*Builder, error)
type BuilderConfiguration ¶
type BuilderOutput ¶
type BuilderOutput struct {
// Image is the fully-qualified tag of the image that was built.
Image string
}
Click to show internal directories.
Click to hide internal directories.