Browse Source

Merge pull request #2374 from infosiftr/only-library

Only upload logos to `library/`
yosifkit 2 years ago
parent
commit
9699645c75
1 changed files with 2 additions and 1 deletions
  1. 2 1
      push.pl

+ 2 - 1
push.pl

@@ -175,7 +175,8 @@ while (my $repo = shift) { # 'library/hylang', 'tianon/perl', etc
 	
 	
 	my $repoUrl = $dockerHub . '/v2/repositories/' . $repo . '/';
 	my $repoUrl = $dockerHub . '/v2/repositories/' . $repo . '/';
 	
 	
-	if ($logos) {
+	if ($logos && $repo =~ m{ ^ library/ }x) {
+		# only DOI ("library"), DSOS, or DVP orgs can include a logo which is displayed in the Hub UI
 		# if we have a logo file, let's update that metadata first
 		# if we have a logo file, let's update that metadata first
 		my $repoLogo120 = $repoName . '/logo-120.png';
 		my $repoLogo120 = $repoName . '/logo-120.png';
 		if (!-f $repoLogo120) {
 		if (!-f $repoLogo120) {