Skip to content

Commit a6a2315

Browse files
authored
Work CI-CD
- Replace sign tool with new workflow. - Rework variable declaration to add sign group. ***NO_CI***
1 parent c8d3e3c commit a6a2315

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

azure-pipelines.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ jobs:
9292
vmImage: 'windows-latest'
9393

9494
variables:
95-
DOTNET_NOLOGO: true
96-
NUGET_CERT_REVOCATION_MODE: 'offline'
97-
buildPlatform: 'Any CPU'
98-
buildConfiguration: 'Release'
95+
- group: sign-client-credentials
96+
- name: DOTNET_NOLOGO
97+
value: true
98+
- name: buildPlatform
99+
value: 'Any CPU'
100+
- name: buildConfiguration
101+
value: 'Release'
99102

100103
steps:
101104
- checkout: self
@@ -218,26 +221,28 @@ jobs:
218221
inputs:
219222
command: custom
220223
custom: tool
221-
arguments: install --tool-path . SignClient
222-
223-
- pwsh: |
224-
.\SignClient "Sign" `
225-
--baseDirectory "$(Build.ArtifactStagingDirectory)" `
226-
--input "**/*.nupkg" `
227-
--config "$(Build.Repository.LocalPath)\config\SignClient.json" `
228-
--filelist "$(Build.Repository.LocalPath)\config\filelist.txt" `
229-
--user "$(SignClientUser)" `
230-
--secret '$(SignClientSecret)' `
231-
--name "Test Framework" `
232-
--description "Test Framework" `
233-
--descriptionUrl "https://github.com/$env:Build_Repository_Name"
234-
displayName: Sign packages
235-
continueOnError: true
236-
condition: >-
237-
and(
238-
succeeded(),
239-
eq(variables['System.PullRequest.PullRequestId'], '')
240-
)
224+
arguments: install --tool-path . sign --version 0.9.1-beta.23530.1
225+
226+
- pwsh: |
227+
.\sign code azure-key-vault `
228+
"**/*.nupkg" `
229+
--base-directory "$(Build.ArtifactStagingDirectory)" `
230+
--file-list "$(Build.Repository.LocalPath)\config\filelist.txt" `
231+
--description "$(nugetPackageName)" `
232+
--description-url "https://github.com/$env:Build_Repository_Name" `
233+
--azure-key-vault-tenant-id "$(SignTenantId)" `
234+
--azure-key-vault-client-id "$(SignClientId)" `
235+
--azure-key-vault-client-secret "$(SignClientSecret)" `
236+
--azure-key-vault-certificate "$(SignKeyVaultCertificate)" `
237+
--azure-key-vault-url "$(SignKeyVaultUrl)" `
238+
--timestamp-url http://timestamp.digicert.com
239+
displayName: Sign packages
240+
continueOnError: true
241+
condition: >-
242+
and(
243+
succeeded(),
244+
eq(variables['System.PullRequest.PullRequestId'], '')
245+
)
241246
242247
# publish artifacts (only possible if this is not a PR originated on a fork)
243248
- task: PublishBuildArtifacts@1

0 commit comments

Comments
 (0)