Documentation ¶
Overview ¶
Package yeet is a set of small helper functions useful for yeeting out scripts.
Index ¶
- Variables
- func DockerBuild(ctx context.Context, dir, tag string, args ...string)
- func DockerLoadResult(ctx context.Context, at string)
- func DockerPush(ctx context.Context, image string)
- func DockerTag(ctx context.Context, org, repo, image string) string
- func GitTag(ctx context.Context) (string, error)
- func Output(ctx context.Context, cmd string, args ...string) (string, error)
- func ShouldWork(ctx context.Context, env []string, dir string, cmdName string, args ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WD string DateTag string )
current working directory and date:time tag of app boot (useful for tagging slugs)
Functions ¶
func DockerBuild ¶
DockerBuild builds a docker image with the given working directory and tag.
func DockerLoadResult ¶ added in v1.4.0
DockerLoadResult loads a nix-built docker image
func DockerPush ¶ added in v1.4.0
DockerPush pushes a docker image to a given host
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.