Skip to content

Commit 2558166

Browse files
authored
Run code sign of packages before Windows installers are built, and run SignCheck in a separate step
1 parent f307233 commit 2558166

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.azure/pipelines/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,20 @@ jobs:
6363
- script: ./build.cmd -ci -sign -forceCoreMsbuild /p:DisableCodeSigning=true -projects ./src/SiteExtensions/LoggingAggregate/src/Microsoft.AspNetCore.AzureAppServices.SiteExtension/Microsoft.AspNetCore.AzureAppServices.SiteExtension.csproj
6464
displayName: Build SiteExtension
6565

66+
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If https://github.com/dotnet/arcade/issues/1957 is resolved,
67+
# consider running code-signing inline with the other previous steps.
68+
# Sign check is disabled because it is run in a separate step below, after installers are built.
69+
- script: ./build.cmd -ci -sign /t:CodeSign /p:SignType=$(_SignType) /p:DisableSignCheck=true
70+
displayName: Code sign packages
71+
6672
# Windows installers bundle both x86 and x64 assets
6773
- powershell: ./src/Installers/Windows/build.ps1 -ci /p:SignType=$(_SignType)
6874
displayName: Build Installers
6975

70-
# This runs code-signing on all outputs as defined in build/CodeSign.targets. If https://github.com/dotnet/arcade/issues/1957 is resolved,
71-
# consider running code-signing inline with the other previous steps.
72-
- script: ./build.cmd -ci -sign /t:CodeSign /t:SignCheck /p:SignType=$(_SignType)
73-
displayName: Code sign packages
76+
# Run sign check to verify everything was code signed.
77+
- script: ./build.cmd -ci -sign /t:SignCheck /p:SignType=$(_SignType)
78+
displayName: Run sign check
79+
condition: eq(variables['_SignType'], 'real')
7480
artifacts:
7581
- name: Windows_Packages
7682
path: artifacts/packages/

0 commit comments

Comments
 (0)