Reenable and fix post build signing (#9176)
Fixes post build signing so that the manifests are conformant with the requirement that items to sign should also appear in the artifacts section of a manifest.
This commit is contained in:
parent
46786b7851
commit
336b2cdcf7
3 changed files with 19 additions and 11 deletions
|
@ -16,6 +16,8 @@ variables:
|
||||||
value: https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
|
value: https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
|
||||||
- name: _PublishUsingPipelines
|
- name: _PublishUsingPipelines
|
||||||
value: false
|
value: false
|
||||||
|
- name: PostBuildSign
|
||||||
|
value: true
|
||||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
- group: DotNet-DotNetCli-Storage
|
- group: DotNet-DotNetCli-Storage
|
||||||
- group: DotNet-Blob-Feed
|
- group: DotNet-Blob-Feed
|
||||||
|
|
|
@ -116,6 +116,18 @@
|
||||||
</ChecksumsToPushToBlobFeed>
|
</ChecksumsToPushToBlobFeed>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(PostBuildSign)' == 'true'">
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsShippingPackagesDir)*.zip" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsShippingPackagesDir)*.exe" />
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsShippingPackagesDir)*.msi" />
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsShippingPackagesDir)*.nupkg" />
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsNonShippingPackagesDir)*.msi" />
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsNonShippingPackagesDir)*.zip" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
|
||||||
|
<ItemsToSignPostBuildWithPaths Include="$(ArtifactsNonShippingPackagesDir)*.nupkg" />
|
||||||
|
<ItemsToSignPostBuild Remove="@(ItemsToSignPostBuild)" />
|
||||||
|
<ItemsToSignPostBuild Include="@(ItemsToSignPostBuildWithPaths->'%(Filename)%(Extension)')" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsStableBuild>false</IsStableBuild>
|
<IsStableBuild>false</IsStableBuild>
|
||||||
<IsStableBuild Condition="'$(DotNetFinalVersionKind)' == 'release'">true</IsStableBuild>
|
<IsStableBuild Condition="'$(DotNetFinalVersionKind)' == 'release'">true</IsStableBuild>
|
||||||
|
|
|
@ -2,17 +2,10 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- Do not sign non-shipping packages when doing in-build signing -->
|
<!-- Do not sign non-shipping packages when doing in-build signing -->
|
||||||
<ItemsToSign Remove="$(ArtifactsNonShippingPackagesDir)**\*.nupkg" />
|
<ItemsToSign Remove="$(ArtifactsNonShippingPackagesDir)**\*.nupkg" Condition="'$(PostBuildSign)' != 'true'" />
|
||||||
</ItemGroup>
|
<!-- Remove the wixpacks from items to sign post build. These will be added explicitly by the
|
||||||
|
custom publishing target. And should not be picked up by arcade's default publishing logic. -->
|
||||||
<ItemGroup Condition="'$(PostBuildSign)' == 'true'">
|
<ItemsToSignPostBuild Remove="*.wixpack.zip" />
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsShippingPackagesDir)*.zip" />
|
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsShippingPackagesDir)*.exe" />
|
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsShippingPackagesDir)*.msi" />
|
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsShippingPackagesDir)*.nupkg" />
|
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsNonShippingPackagesDir)*.msi" />
|
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsNonShippingPackagesDir)*.zip" />
|
|
||||||
<ItemsToSignPostBuild Include="$(ArtifactsNonShippingPackagesDir)*.nupkg" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -24,6 +17,7 @@
|
||||||
It is therefore expected that <ItemsToSign> could be an empty set.
|
It is therefore expected that <ItemsToSign> could be an empty set.
|
||||||
-->
|
-->
|
||||||
<AllowEmptySignList>true</AllowEmptySignList>
|
<AllowEmptySignList>true</AllowEmptySignList>
|
||||||
|
<AllowEmptySignPostBuildList>true</AllowEmptySignPostBuildList>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue