Skip to content

Commit cffb5be

Browse files
committed
Work CI-CD
- Update sign process to new .NET Foundation workflow. ***NO_CI***
1 parent 4a1ea12 commit cffb5be

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

azure-pipelines.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ pool:
3737
vmImage: 'windows-latest'
3838

3939
variables:
40-
DOTNET_NOLOGO: true
41-
solution: 'nanoFramework.Tools.Debugger.sln'
42-
buildPlatform: 'Any CPU'
43-
buildConfiguration: 'Release'
40+
- group: sign-client-credentials
41+
- name: DOTNET_NOLOGO
42+
value: true
43+
- name: buildPlatform
44+
value: 'Any CPU'
45+
- name: buildConfiguration
46+
value: 'Release'
47+
- name: solution
48+
value: 'nanoFramework.Tools.Debugger.sln'
4449

4550
steps:
4651

@@ -199,7 +204,7 @@ steps:
199204
flattenFolders: true
200205

201206
- task: DotNetCoreCLI@2
202-
displayName: Install SignTool tool
207+
displayName: Install Sign Client CLI
203208
condition: >-
204209
and(
205210
succeeded(),
@@ -213,16 +218,19 @@ steps:
213218
arguments: install --tool-path . SignClient
214219

215220
- pwsh: |
216-
.\SignClient "Sign" `
217-
--baseDirectory "$(Build.ArtifactStagingDirectory)" `
218-
--input "**/*.nupkg" `
219-
--config "$(Build.Repository.LocalPath)\config\SignClient.json" `
220-
--filelist "$(Build.Repository.LocalPath)\config\filelist.txt" `
221-
--user "$(SignClientUser)" `
222-
--secret '$(SignClientSecret)' `
223-
--name ".NET nanoFramework Debugger" `
221+
.\sign code azure-key-vault `
222+
"**/*.nupkg" `
223+
--base-directory "$(Build.ArtifactStagingDirectory)" `
224+
--file-list "$(Build.Repository.LocalPath)\config\filelist.txt" `
225+
--publisher-name ".NET nanoFramework" `
224226
--description ".NET nanoFramework Debugger" `
225-
--descriptionUrl "https://github.com/$env:Build_Repository_Name"
227+
--description-url "https://github.com/$env:Build_Repository_Name" `
228+
--azure-key-vault-tenant-id "$(SignTenantId)" `
229+
--azure-key-vault-client-id "$(SignClientId)" `
230+
--azure-key-vault-client-secret "$(SignClientSecret)" `
231+
--azure-key-vault-certificate "$(SignKeyVaultCertificate)" `
232+
--azure-key-vault-url "$(SignKeyVaultUrl)" `
233+
--timestamp-url http://timestamp.digicert.com
226234
displayName: Sign packages
227235
continueOnError: true
228236
condition: >-

0 commit comments

Comments
 (0)