Docker · Arazzo Workflow
Docker Build, Tag, and Push an Image
Version 1.0.0
Check registry credentials, build an image from a build context, tag it for a registry, and push it.
Provider
Workflows
build-and-push-image
Build an image from a context, tag it for a registry, and push it.
Validates credentials against the registry, builds the image from the supplied tar context, tags the built image into the target repository, and pushes that tag to the registry.
1
checkCredentials
SystemAuth
Validate the registry credentials up front so an authentication problem fails the flow in seconds rather than after a full image build.
2
buildImage
ImageBuild
Build the image from the supplied tar context using the BuildKit backend, removing intermediate containers and applying the local build tag.
3
inspectBuiltImage
ImageInspect
Inspect the freshly built image to confirm it landed in the local store and to capture its id and digests for the build record.
4
tagImage
ImageTag
Create the registry-qualified tag that references the built image. The push endpoint requires the image to already carry a name that points at the target registry.
5
pushImage
ImagePush
Push the tagged image to the registry using the supplied auth configuration.