fix!: Allow specifying mount type for secrets

This commit is contained in:
Gerald Pinder 2025-07-24 17:11:42 -04:00
parent ef0d731664
commit de76312a38
6 changed files with 99 additions and 51 deletions

View file

@ -215,6 +215,7 @@ impl BuildDriver for DockerDriver {
opts.image.to_string(),
"-f",
for opts.secrets.args(&temp_dir)?,
if opts.secrets.ssh() => "--ssh",
if let Some(cache_from) = opts.cache_from.as_ref() => [
"--cache-from",
format!(
@ -430,6 +431,7 @@ fn build_tag_push_cmd(
"build",
".",
for opts.secrets.args(temp_dir)?,
if opts.secrets.ssh() => "--ssh",
match &opts.image {
ImageRef::Remote(_remote) if opts.push => [
"--output",