flavor: exit with code 1 on a build failure

master
eater 6 years ago
parent 2b70b20a33
commit 7cd18bac7a

@ -289,6 +289,15 @@ sub MAIN() {
system "$builder push $repo/$item" system "$builder push $repo/$item"
} }
} }
my %image_done = ();
$image_done{$_} = 1 foreach (@succ);
my @missed = grep {!defined($image_done{$_})} @images;
if (@missed) {
print "Following images failed: ".join(" ", @missed)."\n";
exit 1;
}
} }
MAIN; MAIN;

Loading…
Cancel
Save