build

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerBuild

func DockerBuild(image, dockerfileLocation, context string) error

DockerBuild calls the following and returns the resulting error, if any:

docker build -t <image> -f <dockerfileLocation> <context>

func DockerBuildACR added in v0.2.0

func DockerBuildACR(registry, image, dockerfileLocation, context string) error

func DockerPush

func DockerPush(image string) error

DockerPush calls the following and returns the resulting error, if any:

docker push <image>

func GetImageName

func GetImageName(envName string) (string, error)

func Version added in v0.3.0

func Version() string

Version returns the current git SHA of commit the binary was built from

Types

type Cmd added in v0.3.0

type Cmd = func(args ...string) (string, error)

func GoBuild added in v0.3.0

func GoBuild() (Cmd, error)

GoBuild runs the go build command with the -ldflags flag and the git sha of the current build

Jump to

Keyboard shortcuts

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