flavor: exit with code 1 on a build failure
This commit is contained in:
parent
2b70b20a33
commit
7cd18bac7a
1 changed files with 9 additions and 0 deletions
9
flavor
9
flavor
|
@ -289,6 +289,15 @@ sub MAIN() {
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue