target

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package target exposes docker targets that can be imported in magefile using import syntax. To use these targets target.ImageName and target.ImageUrl has to be set For projects that build more than one image using the util package should be preferred. DOCKER_IMAGE_TAGS environment variable can be used to set wanted tags for commands.

Index

Constants

This section is empty.

Variables

View Source
var (
	ImageName  = ""
	ProjectUrl = "" // Used for OCI label.
	Dockerfile = docker.DefaultDockerfile
)

Functions

This section is empty.

Types

type Docker

type Docker mg.Namespace

func (Docker) Build

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

Build builds docker image

func (Docker) Down added in v1.4.4

func (Docker) Down(ctx context.Context) error

Down stops containers in daemon mode

func (Docker) Push

func (Docker) Push(ctx context.Context) error

Push pushes all tags for image

func (Docker) Up added in v1.4.4

func (Docker) Up(ctx context.Context) error

Up start containers in daemon mode

Jump to

Keyboard shortcuts

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