-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yaml
61 lines (58 loc) · 1.49 KB
/
azure-pipelines.yaml
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
---
trigger:
- main
variables:
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: true
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: 1
- group: PackageSigningSecrets
stages:
- stage: assemble
displayName: Assemble
jobs:
- job: build
displayName: Build
pool:
vmImage: ubuntu-latest
steps:
- task: UseDotNet@2
displayName: 'Ensure .NET 8.0 SDK'
inputs:
packageType: sdk
version: 8.0.x
- task: UseDotNet@2
displayName: 'Ensure .NET 6.0 SDK'
inputs:
packageType: sdk
version: 6.0.x
- task: DotNetCoreCLI@2
displayName: dotnet restore
inputs:
command: restore
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: build
arguments: --no-restore /p:TreatWarningsAsErrors=True
- task: DotNetCoreCLI@2
displayName: dotnet test
inputs:
command: test
arguments: --no-build --filter Category=Smoke
- task: DotNetCoreCLI@2
displayName: dotnet pack
inputs:
command: pack
packagesToPack: src/Steeltoe.NetCoreTool.Templates.csproj
arguments: --no-build
- task: Powershell@2
displayName: Sign NuGets
inputs:
filePath: sign/SignPackages.ps1
env:
ArtifactStagingDirectory: $(Build.ArtifactStagingDirectory)
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
- task: PublishBuildArtifacts@1
displayName: Publish Build Artifacts