feat: Include base image information in labels
This commit is contained in:
parent
3674f83fd2
commit
e3b246ef91
10 changed files with 246 additions and 193 deletions
|
|
@ -145,6 +145,16 @@ impl GenerateCommand {
|
|||
.registry(registry)
|
||||
.repo(Driver::get_repo_url()?)
|
||||
.build_scripts_image(determine_scripts_tag(self.platform)?)
|
||||
.base_digest(
|
||||
Driver::get_metadata(
|
||||
&GetMetadataOpts::builder()
|
||||
.image(&*recipe.base_image)
|
||||
.tag(&*recipe.image_version)
|
||||
.platform(self.platform)
|
||||
.build(),
|
||||
)?
|
||||
.digest,
|
||||
)
|
||||
.build();
|
||||
|
||||
let output_str = template.render().into_diagnostic()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue