Skip to content

Commit af3a548

Browse files
Surayya Huseyn ZadaSurayya Huseyn Zada
authored andcommitted
cleanup targets
1 parent 3078ea8 commit af3a548

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,6 @@
297297
</Target>
298298

299299
<Target Name="_PublishMultiArchContainers" DependsOnTargets="$(PublishContainerDependsOn)" >
300-
<Error Text="ContainerArchiveOutputPath is invalid. It can only be a directory in multi-arch scenario because the runtime identifier is appended in the end of the filename."
301-
Condition="'$(ContainerArchiveOutputPath)' != '' and
302-
!$(ContainerArchiveOutputPath.EndsWith('/')) and
303-
!$(ContainerArchiveOutputPath.EndsWith('\\')) and
304-
$(ContainerArchiveOutputPath.EndsWith('.tar.gz'))" />
305-
306300
<PropertyGroup>
307301
<!--We want to skip publishing individual images in case of multi-arch tarball publishing or local daemon (only docker) publishing because all images are published in one tarball.-->
308302
<!--We don't want to skip publishing individual images in case of remote registry because the individual images should be available in the registry before image index is pushed.-->
@@ -400,10 +394,6 @@
400394
Include="$([System.String]::Copy('%(_ParsedContainerEnvironmentVariables.Identity)').Split(':')[0])"
401395
Value="$([System.String]::Copy('%(_ParsedContainerEnvironmentVariables.Identity)').Split(':')[1])" />
402396
</ItemGroup>
403-
<PropertyGroup>
404-
<!-- We've already validated that ContainerArchiveOutputPath is pointing to a directory. -->
405-
<ContainerArchiveOutputPath Condition="'$(ContainerArchiveOutputPath)' != ''">$([System.IO.Path]::Combine($(ContainerArchiveOutputPath), $(ContainerRepository)-$(ContainerRuntimeIdentifier).tar.gz))</ContainerArchiveOutputPath>
406-
</PropertyGroup>
407397
</Target>
408398

409399
<Target Name="PublishContainer"

0 commit comments

Comments
 (0)