-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSign-job.yml
35 lines (30 loc) · 1.19 KB
/
Sign-job.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
parameters:
dependsOn: ['Build', 'Pester', 'ScriptAnalyzer']
compiledArtifact: 'Compiled'
signedArtifact: 'Signed'
certificate: '4CBBCD74FE2AEBD080758A967D20ABF916872A95'
stagingDirectory: '$(Build.ArtifactStagingDirectory)'
filter: '*.*'
pool:
vmImage: 'windows-2019'
jobs:
- job: Sign
dependsOn: ${{ parameters.dependsOn }}
pool: ${{ parameters.pool }}
steps:
- checkout: none # skip checking out code, we're just signing an artifact
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
artifactName: ${{ parameters.artifactName }}
downloadPath: '${{ parameters.stagingDirectory }}/${{ parameters.compiledArtifact }}'
- template: Sign-step.yml
parameters:
Path: '${{ parameters.stagingDirectory }}/${{ parameters.compiledArtifact }}'
Filter: ${{ parameters.filter }}
Certificate: ${{ parameters.certificate }}
- task: PublishPipelineArtifact@1
displayName: 'RePublish Signed ${{ parameters.compiledArtifact }}'
inputs:
artifactName: ${{ parameters.signedArtifact }}
targetPath: '${{ parameters.stagingDirectory }}/${{ parameters.artifactName }}'