Skip to content

Latest commit

 

History

History
151 lines (118 loc) · 4.36 KB

container-build-v0.md

File metadata and controls

151 lines (118 loc) · 4.36 KB
title description ms.date monikerRange
ContainerBuild@0 - Container Build v0 task
Container Build Task.
05/14/2024
>=azure-pipelines-2020

ContainerBuild@0 - Container Build v0 task

:::moniker range=">=azure-pipelines-2020"

Container Build Task.

:::moniker-end

Syntax

:::moniker range=">=azure-pipelines-2020"

# Container Build v0
# Container Build Task.
- task: ContainerBuild@0
  inputs:
    #dockerRegistryServiceConnection: # string. Docker registry service connection. 
    #repository: # string. Container repository. 
    Dockerfile: 'Dockerfile' # string. Required. Dockerfile. Default: Dockerfile.
    #buildContext: '.' # string. Build context. Default: ..
    #tags: '$(Build.BuildId)' # string. Tags. Default: $(Build.BuildId).

:::moniker-end

Inputs

:::moniker range=">=azure-pipelines-2020"

dockerRegistryServiceConnection - Docker registry service connection
string.

Specifies a Docker registry service connection.


:::moniker-end

:::moniker range=">=azure-pipelines-2020"

repository - Container repository
string.

The name of the repository within the container registry.


:::moniker-end

:::moniker range=">=azure-pipelines-2020"

Dockerfile - Dockerfile
string. Required. Default value: Dockerfile.

The path to the Dockerfile.


:::moniker-end

:::moniker range=">=azure-pipelines-2020"

buildContext - Build context
string. Default value: ..

The path to the build context.


:::moniker-end

:::moniker range=">=azure-pipelines-2020"

tags - Tags
string. Default value: $(Build.BuildId).

The list of tags in separate lines. Tags are used while building and pushing the image to container registry.


:::moniker-end

Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

:::moniker range=">=azure-pipelines-2020"

None.

:::moniker-end

Requirements

:::moniker range=">=azure-pipelines-2020"

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities Running this task satisfies the following demands for any subsequent tasks in the same job: Buildctl
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Build

:::moniker-end