Documentation ¶
Index ¶
- Variables
- func Build(ctx context.Context) error
- func Lint(ctx context.Context) error
- func Push(ctx context.Context) error
- func RecordImage(ctx context.Context) error
- func RotateCache(ctx context.Context) error
- type BuildConfig
- type Docker
- func (d *Docker) Build(ctx context.Context) error
- func (d *Docker) BuildWithConfig(ctx context.Context, config BuildConfig) error
- func (d *Docker) BuildxCacheFrom() string
- func (d *Docker) BuildxCacheTo() string
- func (d *Docker) CacheRepository() string
- func (d *Docker) Image() string
- func (d *Docker) ImageExists(ctx context.Context, tag string) bool
- func (d *Docker) ImageWithTag(tag string) string
- func (d *Docker) ImageWithTagForRegistry(regist registry.Registry, repository string, tag string) string
- func (d *Docker) Lint(ctx context.Context) error
- func (d *Docker) Push(ctx context.Context) error
- func (d *Docker) RecordImage() error
- func (d *Docker) Repository() string
- func (d *Docker) RotateCache(ctx context.Context) error
- func (d *Docker) SanitizeTag(s string) string
- func (d *Docker) Tag() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Instance = &Docker{}
Functions ¶
func RecordImage ¶ added in v0.0.9
Record the image to a file (defined by DOCKER_IMAGE_FILE) or to stdout
Types ¶
type BuildConfig ¶ added in v0.0.14
type BuildConfig struct {
BuildArgs []string
}
type Docker ¶
type Docker struct { Env env.Env Registry registry.Registry CacheRegistry registry.Registry CiCd cicd.CiCd Git *git.Git IgnoreFastBuild bool }
func (*Docker) BuildWithConfig ¶ added in v0.0.14
func (d *Docker) BuildWithConfig(ctx context.Context, config BuildConfig) error
BuildWithConfig will build a docker image using buildx and build configuration
func (*Docker) BuildxCacheFrom ¶
func (*Docker) BuildxCacheTo ¶
func (*Docker) CacheRepository ¶ added in v0.0.19
func (*Docker) ImageExists ¶ added in v0.0.17
func (*Docker) ImageWithTag ¶ added in v0.0.12
func (*Docker) ImageWithTagForRegistry ¶ added in v0.0.19
func (*Docker) Push ¶ added in v0.0.31
Push assumes the images were already built and does the docker push to the remote repository
func (*Docker) RecordImage ¶ added in v0.0.9
func (*Docker) Repository ¶
func (*Docker) SanitizeTag ¶
Click to show internal directories.
Click to hide internal directories.