Auto releasing a build needs peer approval (#161981)

* make sure VSCODE_RELEASE has peer approval

* boom
This commit is contained in:
João Moreno 2022-09-27 07:55:34 -07:00 committed by GitHub
parent 43894c6ea0
commit 70a7ce4d1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -593,10 +593,28 @@ stages:
steps:
- template: product-publish.yml
- ${{ if and(parameters.VSCODE_RELEASE, eq(parameters.VSCODE_DISTRO_REF, ' ')) }}:
- stage: ApproveRelease
dependsOn: [] # run in parallel to compile stage
pool: vscode-1es-linux
jobs:
- deployment: ApproveRelease
displayName: "Approve Release"
environment: "vscode"
variables:
skipComponentGovernanceDetection: true
strategy:
runOnce:
deploy:
steps:
- checkout: none
- ${{ if or(and(parameters.VSCODE_RELEASE, eq(parameters.VSCODE_DISTRO_REF, ' ')), and(in(parameters.VSCODE_QUALITY, 'insider', 'exploration'), eq(variables['VSCODE_SCHEDULEDBUILD'], true))) }}:
- stage: Release
dependsOn:
- Publish
- ${{ if and(parameters.VSCODE_RELEASE, eq(parameters.VSCODE_DISTRO_REF, ' ')) }}:
- ApproveRelease
pool: vscode-1es-linux
jobs:
- job: ReleaseBuild