Skip to content

Commit

Permalink
add Digest null value to test scenario that was missed
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel authored and BeyondEvil committed Dec 20, 2024
1 parent 0324adb commit 21d5505
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public async Task TarballsHaveCorrectStructure()
BuiltImage builtImage = imageBuilder.Build();

// Write the image to disk
var sourceReference = new SourceImageReference(registry, DockerRegistryManager.RuntimeBaseImage, DockerRegistryManager.Net7ImageTag);
var sourceReference = new SourceImageReference(registry, DockerRegistryManager.RuntimeBaseImage, DockerRegistryManager.Net7ImageTag, null);
var destinationReference = new DestinationImageReference(new ArchiveFileRegistry(archiveFile), NewImageName(), tags);

return (builtImage, sourceReference, destinationReference);
Expand Down Expand Up @@ -1214,11 +1214,7 @@ public async Task CanPackageForAllSupportedContainerRIDs(string dockerPlatform,
BuiltImage builtImage = imageBuilder.Build();

// Load the image into the local registry
<<<<<<< HEAD
var sourceReference = new SourceImageReference(registry, DockerRegistryManager.RuntimeBaseImage, DockerRegistryManager.Net9ImageTag);
=======
var sourceReference = new SourceImageReference(registry, DockerRegistryManager.RuntimeBaseImage, DockerRegistryManager.Net9PreviewImageTag, null);
>>>>>>> 809df5c609 (Add support for using Digest for base image)
var sourceReference = new SourceImageReference(registry, DockerRegistryManager.RuntimeBaseImage, DockerRegistryManager.Net9ImageTag, null);
var destinationReference = new DestinationImageReference(registry, NewImageName(), new[] { rid });
await new DockerCli(_loggerFactory).LoadAsync(builtImage, sourceReference, destinationReference, default).ConfigureAwait(false);

Expand Down

0 comments on commit 21d5505

Please sign in to comment.