Skip to content

Commit

Permalink
Handle non-matching tag names between manifest and image info file (#693
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mthalman authored Nov 11, 2020
1 parent daf226c commit 21bf941
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ public override async Task ExecuteAsync()
string sourceTag = GetSourceTag(destinationTag);
tags.Add((sourceTag, destinationTag));

TagInfo tagInfo = platformData.PlatformInfo.Tags.First(tagInfo => tagInfo.Name == tag);
if (tagInfo.SyndicatedRepo != null)
TagInfo tagInfo = platformData.PlatformInfo.Tags.FirstOrDefault(tagInfo => tagInfo.Name == tag);
// There may not be a matching tag due to dynamic tag names. For now, we'll say that
// syndication is not supported for dynamically named tags.
// See https://github.com/dotnet/docker-tools/issues/686
if (tagInfo?.SyndicatedRepo != null)
{
foreach (string syndicatedDestinationTagName in tagInfo.SyndicatedDestinationTags)
{
Expand Down

0 comments on commit 21bf941

Please sign in to comment.