fix!: Allow specifying mount type for secrets
This commit is contained in:
parent
ef0d731664
commit
de76312a38
6 changed files with 99 additions and 51 deletions
|
|
@ -59,6 +59,7 @@ impl BuildDriver for BuildahDriver {
|
|||
"buildah",
|
||||
"build",
|
||||
for opts.secrets.args(&temp_dir)?,
|
||||
if opts.secrets.ssh() => "--ssh",
|
||||
if !matches!(opts.platform, Platform::Native) => [
|
||||
"--platform",
|
||||
opts.platform.to_string(),
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ impl BuildDriver for PodmanDriver {
|
|||
"-t",
|
||||
opts.image.to_string(),
|
||||
for opts.secrets.args(&temp_dir)?,
|
||||
if opts.secrets.ssh() => "--ssh",
|
||||
".",
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue