The DockerPush
native step pushes a Docker Image to a Docker registry.
Note
Currently, only Docker registries in Artifactory are supported.
DockerBuild and DockerPush steps must be assigned to the same
affinityGroup
to share state. If they are not, the output of DockerBuild will not be available to DockerPush. For more information onaffinityGroup
see Pipelines Steps.
Docker Build and Push Quickstart
This Docker Build and Push quickstart demonstrates the definition of a pipeline that uses the DockerBuild and DockerPush native steps to build a single Docker Image, push it to Artifactory, and then publish the BuildInfo.
The following topics provide more information on DockerPush Pipeline steps: