cherry picked pipeline changes
This commit is contained in:
Родитель
c17f3e6fa1
Коммит
a029b38fcb
|
@ -25,15 +25,9 @@ resources:
|
|||
branches:
|
||||
- main
|
||||
|
||||
- pipeline: vscode-website-prod
|
||||
source: vscode-website (official)
|
||||
trigger:
|
||||
branches:
|
||||
- prod
|
||||
|
||||
|
||||
variables:
|
||||
LinuxContainerImage: "onebranch.azurecr.io/linux/ubuntu-2004:latest"
|
||||
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest'
|
||||
|
||||
extends:
|
||||
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates
|
||||
|
|
|
@ -26,7 +26,7 @@ resources:
|
|||
- prod
|
||||
|
||||
variables:
|
||||
LinuxContainerImage: "onebranch.azurecr.io/linux/ubuntu-2004:latest"
|
||||
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest'
|
||||
Codeql.enabled: true
|
||||
Codeql.SourceRoot: $(Pipeline.Workspace)/vscode-website
|
||||
Codeql.TSAEnabled: true
|
||||
|
|
|
@ -8,7 +8,7 @@ jobs:
|
|||
- job:
|
||||
displayName: ${{ parameters.jobDisplayName }}
|
||||
pool:
|
||||
type: linux
|
||||
type: windows
|
||||
|
||||
variables:
|
||||
ob_outputDirectory: '$(Pipeline.Workspace)/vscode-website/dist'
|
||||
|
@ -38,23 +38,24 @@ jobs:
|
|||
versionFilePath: $(Pipeline.Workspace)/vscode-website/.nvmrc
|
||||
checkLatest: true
|
||||
|
||||
- task: npmAuthenticate@0
|
||||
displayName: Setup NPM Authentication
|
||||
inputs:
|
||||
workingFile: $(Pipeline.Workspace)/vscode-website/server/.npmrc
|
||||
customEndpoint: website npm feed
|
||||
|
||||
- script: npm install
|
||||
displayName: Install dependencies
|
||||
workingDirectory: $(Pipeline.Workspace)/vscode-website
|
||||
|
||||
- pwsh: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-dist-setup.ps1
|
||||
- powershell: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-dist-setup.ps1
|
||||
displayName: Build Dist Setup
|
||||
workingDirectory: $(Pipeline.Workspace)/vscode-website
|
||||
|
||||
- pwsh: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-artifact-from-website.ps1
|
||||
- powershell: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-artifact-from-website.ps1
|
||||
displayName: Rebuild Dist From Website
|
||||
workingDirectory: $(Pipeline.Workspace)/vscode-website
|
||||
|
||||
- task: npmAuthenticate@0
|
||||
inputs:
|
||||
workingFile: $(Pipeline.Workspace)/vscode-website/server/.npmrc
|
||||
displayName: Setup NPM Authentication
|
||||
|
||||
- script: npm install
|
||||
displayName: Install Dist dependencies
|
||||
workingDirectory: $(Pipeline.Workspace)/vscode-website/dist
|
||||
|
|
|
@ -3,10 +3,5 @@ stages:
|
|||
jobs:
|
||||
- template: ..\jobs\build.yml
|
||||
parameters:
|
||||
jobDisplayName: vscode-ppe
|
||||
jobDisplayName: vscode-site-vnext
|
||||
artifactName: vscode-website-main
|
||||
|
||||
- template: ..\jobs\build.yml
|
||||
parameters:
|
||||
jobDisplayName: vscode-docs-vnext
|
||||
artifactName: vscode-website-prod
|
||||
|
|
|
@ -3,5 +3,5 @@ stages:
|
|||
jobs:
|
||||
- template: ..\jobs\build.yml
|
||||
parameters:
|
||||
jobDisplayName: vscode
|
||||
jobDisplayName: vscode-site-prod
|
||||
artifactName: vscode-website-prod
|
Загрузка…
Ссылка в новой задаче