- 文档首页
持续交付
用户指南
流水线
YAML 流水线
步骤列表
镜像构建
镜像构建
镜像步骤用于构建容器镜像并将其推送到指定的镜像仓库。
使用 BuildKit 高效构建 Docker 镜像,并将其自动推送至平台提供的容器镜像服务(CR)。
- task: build-image-and-push-to-registry
displayName: Build and Push to CR
displayName: Build and Push to CR
component: buildkit-cr@4.0.0
registryInstance: my-registry-instance
构建 Docker 镜像并将其推送到用户自定义的、非平台管理的镜像仓库(如 Docker Hub、Harbor 等)。
- 组件:buildkit-custom@3.0.0
- task: build-image-and-push-to-custom-server
displayName: Build and Push to Custom Registry
displayName: Build and Push to Custom Registry
component: buildkit-custom@3.0.0
address: registry.example.com/my-org/my-app:v1.0.0
最近更新时间:2026.05.11 11:33:36