Skip to content

Commit f41c8ca

Browse files
committed
devops: migrate to 1ES PT templates (#2278)
1 parent 1a97276 commit f41c8ca

File tree

1 file changed

+48
-35
lines changed

1 file changed

+48
-35
lines changed

.azure-pipelines/publish.yml

+48-35
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,51 @@
1-
# don't trigger for Pull Requests
1+
trigger: none
22
pr: none
33

4-
trigger:
5-
tags:
6-
include:
7-
- '*'
4+
resources:
5+
repositories:
6+
- repository: 1esPipelines
7+
type: git
8+
name: 1ESPipelineTemplates/1ESPipelineTemplates
9+
ref: refs/tags/release
810

9-
pool:
10-
vmImage: ubuntu-latest
11-
12-
steps:
13-
- task: UsePythonVersion@0
14-
inputs:
15-
versionSpec: '3.8'
16-
displayName: 'Use Python'
17-
18-
- script: |
19-
python -m pip install --upgrade pip
20-
pip install -r local-requirements.txt
21-
pip install -e .
22-
python setup.py bdist_wheel --all
23-
displayName: 'Install & Build'
24-
25-
- task: EsrpRelease@4
26-
inputs:
27-
ConnectedServiceName: 'Playwright-ESRP'
28-
Intent: 'PackageDistribution'
29-
ContentType: 'PyPi'
30-
ContentSource: 'Folder'
31-
FolderLocation: './dist/'
32-
WaitForReleaseCompletion: true
33-
34-
Approvers: '[email protected]'
35-
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
36-
MainPublisher: 'Playwright'
37-
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
38-
displayName: 'ESRP Release to PIP'
11+
extends:
12+
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
13+
parameters:
14+
pool:
15+
name: DevDivPlaywrightAzurePipelinesUbuntu2204
16+
os: linux
17+
sdl:
18+
sourceAnalysisPool:
19+
name: DevDivPlaywrightAzurePipelinesWindows2022
20+
# The image must be windows-based due to restrictions of the SDL tools. See: https://aka.ms/AAo6v8e
21+
# In the case of a windows build, this can be the same as the above pool image.
22+
os: windows
23+
stages:
24+
- stage: Stage
25+
jobs:
26+
- job: HostJob
27+
steps:
28+
- task: UsePythonVersion@0
29+
inputs:
30+
versionSpec: '3.8'
31+
displayName: 'Use Python'
32+
- script: |
33+
python -m pip install --upgrade pip
34+
pip install -r local-requirements.txt
35+
pip install -e .
36+
python setup.py bdist_wheel --all
37+
displayName: 'Install & Build'
38+
- task: EsrpRelease@4
39+
inputs:
40+
ConnectedServiceName: 'Playwright-ESRP'
41+
Intent: 'PackageDistribution'
42+
ContentType: 'PyPi'
43+
ContentSource: 'Folder'
44+
FolderLocation: './dist/'
45+
WaitForReleaseCompletion: true
46+
47+
Approvers: '[email protected]'
48+
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
49+
MainPublisher: 'Playwright'
50+
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
51+
displayName: 'ESRP Release to PIP'

0 commit comments

Comments
 (0)