From bc99e8ddbc618955e0a44f414df92618d6933929 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Thu, 13 Oct 2022 11:21:59 +0900 Subject: [PATCH] chore: use buildx to build grpc-ping-go Signed-off-by: kahirokunn --- code-samples/serving/grpc-ping-go/README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code-samples/serving/grpc-ping-go/README.md b/code-samples/serving/grpc-ping-go/README.md index 20d166c1fd..70ed8d5771 100644 --- a/code-samples/serving/grpc-ping-go/README.md +++ b/code-samples/serving/grpc-ping-go/README.md @@ -32,11 +32,8 @@ for production containers. Replace `{username}` with your Docker Hub username then run the commands: ```bash - # Build the container on your local machine. - docker build --tag "{username}/grpc-ping-go" . - - # Push the container to docker registry. - docker push "{username}/grpc-ping-go" + # Build and push the container on your local machine. + docker buildx build --platform linux/arm64,linux/amd64 -t "{username}/grpc-ping-go" --push . ``` 3. Update the `service.yaml` file in the project to reference the published image from step 1.