We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17d32ff commit c61eae2Copy full SHA for c61eae2
build_images.pl
@@ -8,6 +8,8 @@
8
"ubuntu-small" => "ubuntu-small",
9
};
10
11
+my $current_branch = `git rev-parse --abbrev-ref HEAD`;
12
+
13
foreach my $branch (keys %$branches_to_tags) {
14
my $image_and_tag = "$dockeruser/$image:$branches_to_tags->{$branch}";
15
if(system("git checkout $branch && docker build -t $image_and_tag .") == 0) {
@@ -16,3 +18,4 @@
16
18
print "Building $image_and_tag failed\n";
17
19
}
20
21
+system("git checkout $current_branch");
0 commit comments