docker

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context) error

Run a buildx docker build

func Image added in v0.0.8

func Image(ctx context.Context) error

Prints out the value of the image that would be built by this pipeline

func Lint

func Lint(ctx context.Context) error

Use Hadolint to run a lint against all dockerfiles in this repository

func RotateCache

func RotateCache(ctx context.Context) error

Rotate the buildx caches for github

Types

type Docker

type Docker struct {
	Env      env.Env
	Registry registry.Registry
	CiCd     cicd.CiCd
	Git      *git.Git
}
var Instance Docker

func (*Docker) Build

func (d *Docker) Build(ctx context.Context) error

Build a docker image using buildx

func (*Docker) BuildxCacheFrom

func (d *Docker) BuildxCacheFrom() string

func (*Docker) BuildxCacheTo

func (d *Docker) BuildxCacheTo() string

func (*Docker) Image

func (d *Docker) Image() string

func (*Docker) Lint

func (d *Docker) Lint(ctx context.Context) error

func (*Docker) Repository

func (d *Docker) Repository() string

func (*Docker) RotateCache

func (d *Docker) RotateCache(ctx context.Context) error

func (*Docker) SanitizeTag

func (d *Docker) SanitizeTag(s string) string

func (*Docker) Tag

func (d *Docker) Tag() string

Directories

Path Synopsis
ecr

Jump to

Keyboard shortcuts

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