Skip to content

Commit

Permalink
fix: force amd64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
pxseu committed Jan 2, 2024
1 parent 30e39c6 commit b74e963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/commands/deploy/local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ pub async fn build(
.arg(dir)
.arg("-t")
.arg(image)
.arg("--progress=plain")
.arg("--platform=linux/amd64")
.args(build_args)
.status()
.await?;
Expand Down Expand Up @@ -87,6 +89,7 @@ pub async fn build(
.arg("build")
.arg("-n")
.arg(image)
.arg("--platform=linux/amd64")
.arg(dir)
.status()
.await?;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/update/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ const CMD_ARGS: &[&str] = &["/C"];
const CMD_ARGS: &[&str] = &["-c"];

pub async fn execute_commands(
non_elevated_args: &Vec<OsString>,
elevated_args: &Vec<OsString>,
non_elevated_args: &[OsString],
elevated_args: &[OsString],
) -> Result<()> {
if !elevated_args.is_empty() {
log::debug!(
Expand Down

0 comments on commit b74e963

Please sign in to comment.