fix: Set tags on docker build

This commit is contained in:
Gerald Pinder 2025-02-04 17:22:08 -05:00
parent dfb20be793
commit f1cc7cdf86

View file

@ -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",