# 多平台构建示例 ![pipeline-as-code](https://cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm/-/badge/git/latest/ci/pipeline-as-code) ![git-clone-yyds](https://cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm/-/badge/git/latest/ci/git-clone-yyds) ![push](https://cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm/-/badge/git/latest/ci/status/push) 这个示例用于展示,如何同时构建 `amd64` 和 `arm64` 镜像,并上传到 CNB Docker 制品库。 ## 镜像 `docker.cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm:latest` ## 使用 ### 在 Docker 上使用 ```shell docker run --rm docker.cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm:latest ``` ### 在 云原生构建 上使用 ```yaml main: push: - stages: - name: hello-world image: docker.cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm:latest ``` ## 从当前示例起步 ```shell cnb-init-from https://cnb.cool/examples/ecosystem/multiarch-docker-build-amd-arm.git ```