Skip to content

Commit

Permalink
devops: migrate to 1ES PT templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Feb 6, 2024
1 parent 5cc1078 commit 3f991c8
Showing 1 changed file with 46 additions and 36 deletions.
82 changes: 46 additions & 36 deletions .azure-pipelines/publish.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,48 @@
# don't trigger for Pull Requests
pr: none
trigger: none

trigger:
tags:
include:
- '*'
# The `resources` specify the location and version of the 1ES PT.
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

pool:
vmImage: ubuntu-latest

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
displayName: 'Use Python'

- script: |
python -m pip install --upgrade pip
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel --all
displayName: 'Install & Build'

- task: EsrpRelease@4
inputs:
ConnectedServiceName: 'Playwright-ESRP'
Intent: 'PackageDistribution'
ContentType: 'PyPi'
ContentSource: 'Folder'
FolderLocation: './dist/'
WaitForReleaseCompletion: true
Owners: '[email protected]'
Approvers: '[email protected]'
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
MainPublisher: 'Playwright'
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
displayName: 'ESRP Release to PIP'
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: ubuntu-latest
os: linux
stages:
- stage: Stage
jobs:
- job: HostJob
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
displayName: 'Use Python'

- script: |
python -m pip install --upgrade pip
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel --all
displayName: 'Install & Build'
- task: EsrpRelease@4
inputs:
ConnectedServiceName: 'Playwright-ESRP'
Intent: 'PackageDistribution'
ContentType: 'PyPi'
ContentSource: 'Folder'
FolderLocation: './dist/'
WaitForReleaseCompletion: true
Owners: '[email protected]'
Approvers: '[email protected]'
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
MainPublisher: 'Playwright'
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
displayName: 'ESRP Release to PIP'

0 comments on commit 3f991c8

Please sign in to comment.