goreleaser

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ImageVersion is the golang version extracted from the Dockerfile
	ImageVersion = "v2.15.2"

	// DockerfileChecksum is the checksum of the Dockerfile content
	DockerfileChecksum = "2f111de01f705440e234060a25d48a3ff653dbd4a595f11aca193a14be390bf9"
)

Default Dockerfile (Dockerfile.goreleaser-zig)

View Source
const (
	IMAGE = "goreleaser/goreleaser:v2.15.2"
)

Variables

View Source
var DockerfileContent = `` /* 491-byte string literal not displayed */

DockerfileContent contains the embedded Dockerfile content

View Source
var ErrMissingToken = fmt.Errorf("missing CONTAINIFYCI_GITHUB_TOKEN")

ErrMissingToken is returned when CONTAINIFYCI_GITHUB_TOKEN is not set

Functions

func CacheFolder

func CacheFolder() string

func GetDockerfileMetadata added in v0.42.2

func GetDockerfileMetadata(variantType string) (version, checksum, content string)

GetDockerfileMetadata returns the metadata for the specified variant type. Pass empty string "" for default variant.

func Matches added in v0.31.0

func Matches(build container.Build) bool

Matches implements the Build interface - GoReleaser only runs for golang builds with goreleaser=true

func New

func New() build.BuildStep

func ZigGoreleaserImage added in v0.42.2

func ZigGoreleaserImage(build container.Build) string

ZigGoreleaserImage returns the image URI for the goreleaser+zig intermediate image

Types

type GoReleaserContainer

type GoReleaserContainer struct {
	*container.Container
}

func (*GoReleaserContainer) ApplyEnvs

func (c *GoReleaserContainer) ApplyEnvs(envs []string) []string

func (*GoReleaserContainer) BuildZigImage added in v0.42.2

func (c *GoReleaserContainer) BuildZigImage() error

BuildZigImage builds the intermediate goreleaser+zig Docker image

func (*GoReleaserContainer) Pull

func (c *GoReleaserContainer) Pull() error

func (*GoReleaserContainer) Release

func (c *GoReleaserContainer) Release(env container.EnvType) error

func (*GoReleaserContainer) Run

func (c *GoReleaserContainer) Run() (string, error)

Jump to

Keyboard shortcuts

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