fix: Set tags on docker build
This commit is contained in:
parent
dfb20be793
commit
f1cc7cdf86
1 changed files with 8 additions and 0 deletions
|
|
@ -365,6 +365,14 @@ impl BuildDriver for DockerDriver {
|
|||
],
|
||||
_ => [],
|
||||
},
|
||||
for opts.image.as_ref().map_or_else(Vec::new, |image| {
|
||||
opts.tags.iter().flat_map(|tag| {
|
||||
vec![
|
||||
"-t".to_string(),
|
||||
format!("{}/{}:{tag}", image.resolve_registry(), image.repository())
|
||||
]
|
||||
}).collect()
|
||||
}),
|
||||
"--pull",
|
||||
if !matches!(opts.platform, Platform::Native) => [
|
||||
"--platform",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue