Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yml file for Release and Insiders builds of extension #399

Merged
merged 3 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .pipeline/insiders-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
trigger: none
pr: none
pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- task: CmdLine@2
displayName: 'Installing Dependencies'
inputs:
script: |
sudo npm install -g yarn
sudo npm install -g vsce
- task: CmdLine@2
displayName: 'Building Vsix Packages'
inputs:
script: |
yarn install
yarn run compile
yarn run package
- task: EsrpCodeSigning@2
displayName: 'Code Signing'
inputs:
ConnectedServiceName: 'Database System ESRP Connector'
FolderPath: '$(Build.SourcesDirectory)'
Pattern: '*.vsix'
useMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
[
{
"KeyCode" : "CP-233016",
"OperationCode" : "OpcSign",
"Parameters" : {
"FileDigest" : "/fd SHA256"
},
"ToolName" : "sign",
"ToolVersion" : "1.0"
},
{
"KeyCode" : "CP-233016",
"OperationCode" : "OpcVerify",
"Parameters" : {},
"ToolName" : "sign",
"ToolVersion" : "1.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '*.vsix'
targetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: 'Copy Files'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: build
displayName: 'Publish Artifacts'
23 changes: 23 additions & 0 deletions .pipeline/pullrequest-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
trigger: none
pr:
- master
pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- task: CmdLine@2
displayName: 'Installing Dependencies'
inputs:
script: |
sudo npm install -g yarn
- task: CmdLine@2
displayName: 'Building Vsix Packages'
inputs:
script: |
yarn install
yarn run compile
yarn run package
3 changes: 2 additions & 1 deletion .pipeline/release-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
trigger: none
trigger:
- release
pr: none
strategy:
matrix:
Expand Down