From 33d5b8ea4f3e587f5c6a05ce4a2b789b29586edb Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Wed, 28 Feb 2024 15:33:21 -0300 Subject: [PATCH] specifcy build to use linux/amd64 for deployment --- services/cloud/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cloud/build.go b/services/cloud/build.go index fce1bcd4..c6e9e36a 100644 --- a/services/cloud/build.go +++ b/services/cloud/build.go @@ -32,7 +32,7 @@ func BuildPushImageForDeploy(service string, config *DeployConfigService, deploy var in = bytes.NewBuffer([]byte{}) sh.SetInStream(in) - dockerBuild := builder.NewCommand("docker", "build", "-t", image) + dockerBuild := builder.NewCommand("docker", "build", "-t", image, "--platform", "linux/amd64") if folder, isStr := (*config.Build).(string); isStr { // this should be a simple build with a context folder