forked from skoruba/Duende.IdentityServer.Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-test-pipelines.yml
63 lines (57 loc) · 1.69 KB
/
azure-test-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
# Docker
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
branches:
exclude:
- main
- master
resources:
- repo: self
variables:
#tag: '$(Build.BuildId)'
tag: 'test'
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build
pool:
vmImage: ubuntu-latest
variables:
buildConfiguration: "Release"
solutionPath: "**/*.sln"
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'config'
- task: DotNetCoreCLI@2
displayName: "Build"
inputs:
command: "build"
projects: $(solutionPath)
configuration: $(buildConfiguration)
- task: DotNetCoreCLI@2
displayName: "Publish and zip"
inputs:
command: publish
publishWebProjects: False
projects: '**/src/Skoruba.Duende.IdentityServer.STS.Identity/Skoruba.Duende.IdentityServer.STS.Identity.csproj'
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: DotNetCoreCLI@2
displayName: "Publish and zip admin"
inputs:
command: publish
publishWebProjects: False
projects: '**/src/Skoruba.Duende.IdentityServer.Admin/Skoruba.Duende.IdentityServer.Admin.csproj'
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
ArtifactName: "identityserver"
publishLocation: "Container"