Skip to content

Commit

Permalink
Merge pull request #86 from stavros-k/docker-tags
Browse files Browse the repository at this point in the history
accept multiple docker tags
  • Loading branch information
michaelherger authored Feb 8, 2025
2 parents 8e1aabe + fc6aa26 commit 4cc194f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions buildme.pl
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ sub showUsage {
print "\n";
print "--- Building a Docker image (with only ARM and x86_64 Linux binaries)\n";
print " --build docker <required opts above>\n";
print " --tag <tag> - additional tag for the Docker image\n";
print " --tag <tag> - additional comma separated tag(s) for the Docker image\n";
print "\n";
print "--- Building an RPM package\n";
print " --build rpm <required opts above>\n";
Expand Down Expand Up @@ -454,7 +454,12 @@ sub buildDockerImage {

my @tags = ("$version");
$tag ||= "rc" if $releaseType eq "release";
push @tags, $tag if $tag;

# Split the tag into multiple tags if commas are present
if ($tag) {
my @split_tags = split(/,/, $tag);
push @tags, @split_tags;
}

my $tags = join(' ', map {
" --tag lmscommunity/$defaultDestName:$_";
Expand Down

0 comments on commit 4cc194f

Please sign in to comment.