Skip to content

Commit

Permalink
Merge pull request #507 from kool-dev/patch-build-platform
Browse files Browse the repository at this point in the history
specifcy build to use linux/amd64 for deployment
  • Loading branch information
fabriciojs authored Feb 29, 2024
2 parents 76d5467 + 33d5b8e commit 5b3b769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cloud/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b3b769

Please sign in to comment.