Skip to content

Commit c61eae2

Browse files
committed
Jump back to current branch
1 parent 17d32ff commit c61eae2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_images.pl

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"ubuntu-small" => "ubuntu-small",
99
};
1010

11+
my $current_branch = `git rev-parse --abbrev-ref HEAD`;
12+
1113
foreach my $branch (keys %$branches_to_tags) {
1214
my $image_and_tag = "$dockeruser/$image:$branches_to_tags->{$branch}";
1315
if(system("git checkout $branch && docker build -t $image_and_tag .") == 0) {
@@ -16,3 +18,4 @@
1618
print "Building $image_and_tag failed\n";
1719
}
1820
}
21+
system("git checkout $current_branch");

0 commit comments

Comments
 (0)