feat: Add all linux platforms

This commit is contained in:
Gerald Pinder 2025-07-25 10:19:27 -04:00
parent de76312a38
commit 24a5c8d2b5
18 changed files with 185 additions and 78 deletions

View file

@ -8,7 +8,7 @@ use miette::{Context, IntoDiagnostic, Result, bail, miette};
use serde::Deserialize;
use tempfile::TempDir;
use crate::{drivers::types::Platform, logging::CommandLogging};
use crate::logging::CommandLogging;
use super::{
BuildDriver, DriverVersion,
@ -60,9 +60,9 @@ impl BuildDriver for BuildahDriver {
"build",
for opts.secrets.args(&temp_dir)?,
if opts.secrets.ssh() => "--ssh",
if !matches!(opts.platform, Platform::Native) => [
if let Some(platform) = opts.platform => [
"--platform",
opts.platform.to_string(),
platform.to_string(),
],
"--pull=true",
format!("--layers={}", !opts.squash),