builder

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, version string, opts Options, logger *logs.Logger) error

Build orchestrates the complete package build and publish workflow. It authenticates with the registry, builds images, and publishes versioned artifacts.

Types

type Credentials

type Credentials struct {
	// Repository is the target container registry repository.
	Repository string
	// Username is the registry login username.
	Username string
	// Token is the registry login password or token.
	Token string
}

Credentials configures registry destination and authentication.

type Options

type Options struct {
	// Credentials contains registry destination and authentication settings.
	Credentials Credentials
	// Force allows rebuilding and publishing a version that already exists.
	Force bool
	// Debug keeps generated build files in the package root after build.
	Debug bool
	// Sign configures image signing during the build.
	Sign SignOptions
}

Options configures registry authentication, build behavior, and image signing.

type SignOptions

type SignOptions struct {
	// Enabled turns on image manifest signing.
	Enabled bool
	// Cert is a signing certificate path or base64-encoded certificate.
	Cert string
	// Key is a signing key path, base64-encoded key, or vault path.
	Key string
}

SignOptions configures optional image signing.

Jump to

Keyboard shortcuts

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