forked from DFIR-ORC/dfir-orc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
80 lines (72 loc) · 3.28 KB
/
azure-pipelines.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
trigger:
- release/*
variables:
- name: VCPKG_BINARY_SOURCES
value: 'clear;nuget,https://pkgs.dev.azure.com/jeangautier/dfir-orc/_packaging/vcpkg/nuget/v3/index.json,readwrite;clear;nuget,https://pkgs.dev.azure.com/fabienfl-orc/_packaging/fabienfl-orc/nuget/v3/index.json,readwrite'
stages:
- stage: Build
jobs:
- template: azure-pipelines-template.yml
parameters:
arch: "x64"
- template: azure-pipelines-template.yml
parameters:
arch: "x86"
- stage: Publish
jobs:
- job: RetrieveAndPublish
steps:
- checkout: self
clean: false
submodules: true
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'dfir-orc_x86'
downloadPath: '$(Build.ArtifactStagingDirectory)'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'dfir-orc_x64'
downloadPath: '$(Build.ArtifactStagingDirectory)'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com_jgautier-anssi'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
tagPattern: '^v?[0-9]+\.[0-9]+\.[0-9]+-(alpha|beta|rc)[0-9]+'
isPreRelease: true
assets: |
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/DFIR-Orc_x64.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/DFIR-Orc_x64.pdb
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/FastFind_x64.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/FastFind_x64.pdb
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/DFIR-Orc_x86.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/DFIR-Orc_x86.pdb
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/FastFind_x86.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/FastFind_x86.pdb
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com_jgautier-anssi'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
tagPattern: '^v?[0-9]+\.[0-9]+\.[0-9]+$'
assets: |
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/DFIR-Orc_x64.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/DFIR-Orc_x64.pdb
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/FastFind_x64.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x64/MinSizeRel/FastFind_x64.pdb
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/DFIR-Orc_x86.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/DFIR-Orc_x86.pdb
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/FastFind_x86.exe
$(Build.ArtifactStagingDirectory)/dfir-orc_x86/MinSizeRel/FastFind_x86.pdb
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'