Skip to content

Commit

Permalink
Docker: go into _content for the base container info
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 10, 2024
1 parent 69ed176 commit edcd116
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Build/Docker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ sub showcontainerinfo {
# XXX: verify that the annotation matches?
for (qw{registry_refname registry_digest registry_fatdigest}) {
next unless $annotation->{$_} && ref($annotation->{$_}) eq 'ARRAY';
$containerinfo->{"base_$_"} = $annotation->{$_}->[0] if $annotation->{$_}->[0];
my $v = $annotation->{$_}->[0];
$v = $v->{'_content'} if $v && ref($v) eq 'HASH';
$containerinfo->{"base_$_"} = $v if $v;
}
}
print Build::SimpleJSON::unparse($containerinfo)."\n";
Expand Down

0 comments on commit edcd116

Please sign in to comment.