Compartilhar via


DockerBuildStep Class

The Docker build step.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerregistry.v2018_09_01.models._models_py3.TaskStepProperties
DockerBuildStep

Constructor

DockerBuildStep(*, docker_file_path: str, context_path: str | None = None, context_access_token: str | None = None, image_names: List[str] | None = None, is_push_enabled: bool = True, no_cache: bool = False, target: str | None = None, arguments: List[_models.Argument] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
context_path
str

The URL(absolute or relative) of the source context for the task step.

context_access_token
str

The token (git PAT or SAS token of storage account blob) associated with the context for a step.

image_names

The fully qualified image names including the repository and tag.

is_push_enabled

The value of this property indicates whether the image built should be pushed to the registry or not.

Default value: True
no_cache

The value of this property indicates whether the image cache is enabled or not.

docker_file_path
str

The Docker file path relative to the source context. Required.

target
str

The name of the target build stage for the docker build.

arguments

The collection of override arguments to be used when executing this build step.

Variables

Name Description
type

The type of the step. Required. Known values are: "Docker", "FileTask", and "EncodedTask".

base_image_dependencies

List of base image dependencies for a step.

context_path
str

The URL(absolute or relative) of the source context for the task step.

context_access_token
str

The token (git PAT or SAS token of storage account blob) associated with the context for a step.

image_names

The fully qualified image names including the repository and tag.

is_push_enabled

The value of this property indicates whether the image built should be pushed to the registry or not.

no_cache

The value of this property indicates whether the image cache is enabled or not.

docker_file_path
str

The Docker file path relative to the source context. Required.

target
str

The name of the target build stage for the docker build.

arguments

The collection of override arguments to be used when executing this build step.