-
-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathazure-pipelines.yml
166 lines (143 loc) · 5.26 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
name: Default
steps:
- checkout: self
fetchDepth: 0
submodules: true
fetchTags: true
- powershell: |
$gitVersion = git describe --abbrev=0 --tags
$buildNumber = $gitVersion + "." + $env:BUILD_BUILDNUMBER
Write-Host "##vso[task.setvariable variable=buildVersion;isoutput=true]$buildNumber"
Write-Host "Build number is $buildNumber"
name: gitVersion
- task: NodeTool@0
inputs:
versionSpec: '18.19.x'
displayName: 'Install Node.js'
- task: PowerShell@2
displayName: 'npm install and build'
inputs:
targetType: 'inline'
script: |
npm install
npm run build
workingDirectory: '$(Build.Repository.LocalPath)\website'
- task: DotNetCoreCLI@2
displayName: 'Publish SimpleIdServer'
inputs:
command: 'publish'
publishWebProjects: false
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: '$(Build.Repository.LocalPath)\src\IdServer\SimpleIdServer.IdServer.Startup'
- task: DotNetCoreCLI@2
displayName: 'Publish SimpleIdServer Website'
inputs:
command: 'publish'
publishWebProjects: false
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: '$(Build.Repository.LocalPath)\src\IdServer\SimpleIdServer.IdServer.Website.Startup'
- task: DotNetCoreCLI@2
displayName: 'Publish SCIM'
inputs:
command: 'publish'
publishWebProjects: false
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: '$(Build.Repository.LocalPath)\src\Scim\SimpleIdServer.Scim.Startup'
- task: DotNetCoreCLI@2
displayName: 'Publish Credential Issuer'
inputs:
command: 'publish'
publishWebProjects: false
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: '$(Build.Repository.LocalPath)\src\CredentialIssuer\SimpleIdServer.CredentialIssuer.Startup'
- task: DotNetCoreCLI@2
displayName: 'Publish Credential Issuer website'
inputs:
command: 'publish'
publishWebProjects: false
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: '$(Build.Repository.LocalPath)\src\CredentialIssuer\SimpleIdServer.CredentialIssuer.Website.Startup'
- task: CopyFiles@2
displayName: 'Copy website'
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\website\build'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\website'
- task: CopyFiles@2
displayName: 'Copy SimpleIdServer'
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\src\IdServer\SimpleIdServer.IdServer.Startup\bin\Release\net8.0\publish'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\simpleidserver'
- task: CopyFiles@2
displayName: 'Copy SimpleIdServer website'
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\src\IdServer\SimpleIdServer.IdServer.Website.Startup\bin\Release\net8.0\publish'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\simpleidserverwebsite'
- task: CopyFiles@2
displayName: 'Copy SCIM'
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\src\Scim\SimpleIdServer.Scim.Startup\bin\Release\net8.0\publish'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\scim'
- task: CopyFiles@2
displayName: 'Copy Credential Issuer'
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\src\CredentialIssuer\SimpleIdServer.CredentialIssuer.Startup\bin\Release\net8.0\publish'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\credentialissuer'
- task: CopyFiles@2
displayName: 'Copy Credential issuer website'
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\src\CredentialIssuer\SimpleIdServer.CredentialIssuer.Website.Startup\bin\Release\net8.0\publish'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\credentialissuerwebsite'
- task: PublishBuildArtifacts@1
displayName: 'Publish website artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\website'
ArtifactName: 'website'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish simpleidserver artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\simpleidserver'
ArtifactName: 'simpleidserver'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish simpleidserver website artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\simpleidserverwebsite'
ArtifactName: 'simpleidserverwebsite'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish SCIM'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\scim'
ArtifactName: 'scim'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish Credential issuer'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\credentialissuer'
ArtifactName: 'credentialissuer'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish Credential issuer website'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\credentialissuerwebsite'
ArtifactName: 'credentialissuerwebsite'
publishLocation: 'Container'