builders

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBuildResult

func GenerateBuildResult(directory string, buildSecrets map[string]string) (*core.BuildResult, *a.App, *a.Environment, error)

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(config *config.Config) *Builder

func (*Builder) BuildDockerfile

func (self *Builder) BuildDockerfile(ctx context.Context, buildSecrets map[string]string) (imageName, repoName string, err error)

Builds a Dockerfile from a git repository

func (*Builder) BuildWithRailpack

func (self *Builder) BuildWithRailpack(ctx context.Context, buildSecrets map[string]string) (imageName, repoName string, err error)

func (*Builder) GenerateBuildMetadata

func (self *Builder) GenerateBuildMetadata() (repoName string, outputImage string, cacheKey string)

Generates build metadata: - repoName: name of the repository to be used for the image name (like git repo name) - outputImage: the name of the image to be built and pushed - cacheKey: the key to be used for caching the build in the registry

Jump to

Keyboard shortcuts

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