-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
72 lines (70 loc) · 2.11 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
trigger:
branches:
include:
- master
tags:
include:
- '*'
pr:
autoCancel: false
branches:
include:
- master
resources:
repositories:
- repository: PSModulePublisher
type: github
name: theohbrothers/PSModulePublisher
endpoint: theohbrothers # Check for your 'Type: Github' connection under 'Project Settings' > 'Service connections'
ref: refs/tags/v0.11.0
- repository: PSRepositoryReleaseManager
type: github
name: theohbrothers/PSRepositoryReleaseManager
endpoint: theohbrothers
ref: refs/tags/v0.17.1
stages:
- stage: build_test
displayName: Build, Test
jobs:
- job: windows_2022_powershell_core
displayName: '[Windows Server 2022] PowerShell Core'
pool:
vmImage: windows-2022
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/build-test.yml@PSModulePublisher
- job: windows_2022_powershell_5_1
displayName: '[Windows Server 2022] PowerShell 5.1'
pool:
vmImage: windows-2022
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/build-test.yml@PSModulePublisher
- stage: build_publish
displayName: Build, Publish
dependsOn: build_test
jobs:
- job: windows_2019_powershell_5_1
displayName: '[Windows Server 2019] PowerShell 5.1'
pool:
vmImage: windows-2019
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/build-publish.yml@PSModulePublisher
- stage: release
displayName: Release
dependsOn: build_publish
jobs:
- job: ubuntu_2204_container_powershell_core
displayName: '[Ubuntu 22.04] [Container] PowerShell Core'
pool:
vmImage: ubuntu-22.04
container: theohbrothers/docker-powershell:7.2-ubuntu-22.04-git
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/generate.yml@PSRepositoryReleaseManager
- template: templates/azure-pipelines/entrypoint/release.yml@PSRepositoryReleaseManager