|
274 | 274 | ContainerRuntimeIdentifier="$(ContainerRuntimeIdentifier)"
|
275 | 275 | ContainerUser="$(ContainerUser)"
|
276 | 276 | RuntimeIdentifierGraphPath="$(RuntimeIdentifierGraphPath)"
|
| 277 | + SkipPublishing="$(_SkipContainerPublishing)" |
277 | 278 | GenerateLabels="$(ContainerGenerateLabels)"
|
278 | 279 | GenerateDigestLabel="$(ContainerGenerateLabelsImageBaseDigest)"> <!-- The RID graph path is provided as a property by the SDK. -->
|
279 | 280 |
|
|
302 | 303 | !$(ContainerArchiveOutputPath.EndsWith('\\')) and
|
303 | 304 | $(ContainerArchiveOutputPath.EndsWith('.tar.gz'))" />
|
304 | 305 |
|
| 306 | + <PropertyGroup> |
| 307 | + <!--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.--> |
| 308 | + <!--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.--> |
| 309 | + <!--We don't want to skip publishing individual images in case of local daemon podman because podman loads multi-arch tarball differently - only individual image for the current platform.--> |
| 310 | + <_IsTarballPublishing Condition="'$(ContainerArchiveOutputPath)' != ''">true</_IsTarballPublishing> |
| 311 | + <_IsLocalDockerPublishing Condition="$(ContainerRegistry) == '' and ($(LocalRegistry) == '' or $(LocalRegistry) == 'Docker')">true</_IsLocalDockerPublishing> |
| 312 | + |
| 313 | + <_SkipContainerPublishing>false</_SkipContainerPublishing> |
| 314 | + <_SkipContainerPublishing Condition="'$(_IsTarballPublishing)' == 'true' or '$(_IsLocalDockerPublishing)' == 'true'">true</_SkipContainerPublishing> |
| 315 | + </PropertyGroup> |
| 316 | + |
305 | 317 | <ItemGroup>
|
306 | 318 | <_rids Include="$(ContainerRuntimeIdentifiers)" Condition="'$(ContainerRuntimeIdentifiers)' != ''" />
|
307 | 319 | <_rids Include="$(RuntimeIdentifiers)" Condition="'$(ContainerRuntimeIdentifiers)' == '' and '$(RuntimeIdentifiers)' != ''" />
|
|
328 | 340 | _ContainerEnvironmentVariables=@(ContainerEnvironmentVariable->'%(Identity):%(Value)');
|
329 | 341 | ContainerUser=$(ContainerUser);
|
330 | 342 | ContainerGenerateLabels=$(ContainerGenerateLabels);
|
331 |
| - ContainerGenerateLabelsImageBaseDigest=$(ContainerGenerateLabelsImageBaseDigest) |
| 343 | + ContainerGenerateLabelsImageBaseDigest=$(ContainerGenerateLabelsImageBaseDigest); |
| 344 | + _SkipContainerPublishing=$(_SkipContainerPublishing) |
332 | 345 | "/>
|
333 | 346 | <_rids Remove ="$(_rids)" />
|
334 | 347 | </ItemGroup>
|
|
0 commit comments