command

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildArgs

func BuildArgs(o options.Build, github options.GitHub, tags []string) []string

BuildArgs converts build options into the cli arguments used to call `docker build`

func LoginArgs

func LoginArgs(o options.Login, registry string) []string

LoginArgs converts login options into the cli arguments used to call `docker login`

func PushArgs

func PushArgs(tag string) []string

PushArgs converts tags into the cli arguments used to call `docker push`

func RunBuild

func RunBuild(cmd Runner, opt options.Build, github options.GitHub, tags []string) error

RunBuild runs a docker build and tags the resulting image

func RunLogin

func RunLogin(cmd Runner, opt options.Login, registry string) error

RunLogin runs a docker login

func RunPush

func RunPush(cmd Runner, tags []string) error

RunPush runs a docker push for each tag

Types

type Runner

type Runner interface {
	// Run executes the given command with arguments
	Run(name string, args ...string) error
}

Runner executes standard commands

func NewRunner

func NewRunner() Runner

NewRunner returns a new Runner with the stdout and stderr defaulting to os

Jump to

Keyboard shortcuts

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