Skip to content

Commit f167c38

Browse files
authored
Migrate release pipeline to 1ES Pipeline Templates (#609)
* Update release pipeline * Rename release.yml * Migrate release pipeline to 1ES PT
1 parent 4bd0159 commit f167c38

File tree

1 file changed

+41
-23
lines changed

1 file changed

+41
-23
lines changed

azure-pipelines/release.yml

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,50 @@ trigger: none
1212
pr: none
1313

1414
resources:
15+
repositories:
16+
- repository: 1es
17+
type: git
18+
name: 1ESPipelineTemplates/1ESPipelineTemplates
19+
ref: refs/tags/release
1520
pipelines:
1621
- pipeline: DurableJSCI
1722
project: internal
1823
source: durable-js.official
1924
branch: v3.x
2025

21-
jobs:
22-
- job: Release
23-
pool:
24-
name: "1ES-Hosted-AzFunc"
25-
demands:
26-
- ImageOverride -equals MMSUbuntu20.04TLS
27-
steps:
28-
- task: NodeTool@0
29-
displayName: "Install Node.js"
30-
inputs:
31-
versionSpec: 14.x
32-
- download: DurableJSCI
33-
- script: mv *.tgz package.tgz
34-
displayName: "Rename tgz file" # because the publish command below requires an exact path
35-
workingDirectory: "$(Pipeline.Workspace)/DurableJSCI/drop"
36-
- task: Npm@1
37-
displayName: "npm publish"
38-
inputs:
39-
command: custom
40-
workingDir: "$(Pipeline.Workspace)/DurableJSCI/drop"
41-
verbose: true
42-
customCommand: "publish package.tgz --tag ${{ parameters.NpmPublishTag }} --dry-run ${{ lower(parameters.NpmPublishDryRun) }}"
43-
customEndpoint: "NPM Durable Functions JS Publish"
26+
extends:
27+
template: v1/1ES.Official.PipelineTemplate.yml@1es
28+
parameters:
29+
sdl:
30+
sourceAnalysisPool:
31+
name: 1es-pool-azfunc
32+
image: 1es-windows-2022
33+
os: windows
34+
codeql:
35+
runSourceLanguagesInSourceAnalysis: true
36+
37+
stages:
38+
- stage: Release
39+
pool:
40+
name: 1es-pool-azfunc
41+
image: 1es-ubuntu-22.04
42+
os: linux
43+
jobs:
44+
- job: Release
45+
steps:
46+
- task: NodeTool@0
47+
displayName: "Install Node.js"
48+
inputs:
49+
versionSpec: 14.x
50+
- download: DurableJSCI
51+
- script: mv *.tgz package.tgz
52+
displayName: "Rename tgz file" # because the publish command below requires an exact path
53+
workingDirectory: "$(Pipeline.Workspace)/DurableJSCI/drop"
54+
- task: Npm@1
55+
displayName: "npm publish"
56+
inputs:
57+
command: custom
58+
workingDir: "$(Pipeline.Workspace)/DurableJSCI/drop"
59+
verbose: true
60+
customCommand: "publish package.tgz --tag ${{ parameters.NpmPublishTag }} --dry-run ${{ lower(parameters.NpmPublishDryRun) }}"
61+
customEndpoint: "NPM Durable Functions JS Publish"

0 commit comments

Comments
 (0)