Skip to content

Commit efcc902

Browse files
authored
add converted governed release for arc canary (#1386)
1 parent 662bef0 commit efcc902

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
trigger: none
2+
name: $(Date:yyyyMMdd).$(Rev:r)
3+
variables:
4+
- name: ACRName
5+
value: containerinsights.azurecr.io
6+
- name: ADMIN_SUBSCRIPTION_ID
7+
value: $[variables['ADMIN_SUBSCRIPTION_ID']]
8+
- name: CHART_VERSION
9+
value: ''
10+
- name: IS_CUSTOMER_HIDDEN
11+
value: false
12+
- name: MANAGED_IDENTITY
13+
value: $[variables['MANAGED_IDENTITY']]
14+
- name: ManagedIdentity
15+
value: $[variables['MANAGED_IDENTITY']]
16+
- name: REGISTER_REGIONS_CANARY
17+
value: eastus2euap
18+
- name: RELEASE_TRAINS_PREVIEW_PATH
19+
value: preview
20+
- name: RELEASE_TRAINS_STABLE_PATH
21+
value: stable
22+
- name: RepoType
23+
value: stable
24+
- name: RESOURCE_AUDIENCE
25+
value: $[variables['RESOURCE_AUDIENCE']]
26+
- name: ServiceTreeGuid
27+
value: $[variables['SERVICE_TREE_GUID']]
28+
- name: SPN_CLIENT_ID
29+
value: $[variables['SPN_CLIENT_ID']]
30+
- name: SPN_SECRET
31+
value:
32+
- name: SPN_TENANT_ID
33+
value: $[variables['SPN_TENANT_ID']]
34+
resources:
35+
pipelines:
36+
- pipeline: '_ci-arc-k8s-extension-canary-release'
37+
project: 'microsoft'
38+
source: 'CDPX\docker-provider\ContainerInsights-MultiArch-MergedBranches'
39+
repositories:
40+
- repository: 1ESPipelineTemplates
41+
type: git
42+
name: 1ESPipelineTemplates/1ESPipelineTemplates
43+
ref: refs/tags/release
44+
extends:
45+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
46+
parameters:
47+
pool:
48+
name: Azure-Pipelines-Windows-CI-Test-EO
49+
os: windows
50+
serviceTreeId: $[variables['SERVICE_TREE_GUID']]
51+
customBuildTags:
52+
- ES365AIMigrationTooling-Release
53+
stages:
54+
- stage: Stage_1
55+
displayName: Canary MCR
56+
templateContext:
57+
cloud: Public
58+
isProduction: true
59+
approval:
60+
workflow: approvalService
61+
jobs:
62+
- job: Job_1
63+
displayName: Agentless job
64+
condition: succeeded()
65+
timeoutInMinutes: 7200
66+
pool: server
67+
steps:
68+
- task: ReleasePipeline.approvalservice-ext.a81eb944-f6e7-40bb-acb3-6f68822bc5ab.ApprovalTask@1
69+
displayName: Approval service
70+
inputs:
71+
servicetreeguid: $(ServiceTreeGuid)
72+
timeoutInMinutes: 7200
73+
- job: Job_2
74+
displayName: Agent job - Ev2
75+
condition: succeeded()
76+
timeoutInMinutes: 0
77+
templateContext:
78+
type: releaseJob
79+
workflow: ev2-classic
80+
ev2:
81+
useServerMonitorTask: true
82+
serviceRootPath: $(Pipeline.Workspace)/ev2Artifact/drop/deploy/ServiceGroupRoot
83+
rolloutSpecPath: $(Pipeline.Workspace)/ev2Artifact/drop/deploy/ServiceGroupRoot/RolloutSpecs/Public.Canary.RolloutSpec.json
84+
inlineScopeBindingOverrides: '{ "$schema": "https://ev2schema.azure.net/schemas/2020-01-01/scopeBindings.json", "contentVersion": "0.0.0.1", "scopeBindings": [ { "scopeTagName": "Canary", "bindings": [ { "find": "__ACR_NAME__", "replaceWith": "$(ACRName)" }, { "find": "__REPO_TYPE__", "replaceWith": "$(RepoType)" }, { "find": "__CHART_VERSION__", "replaceWith": "$(CHART_VERSION)" }, { "find": "__MANAGED_IDENTITY__", "replaceWith": "$(ManagedIdentity)" } ] } ] }'
85+
- stage: Stage_2
86+
displayName: Canary Regions Release
87+
trigger: manual
88+
templateContext:
89+
cloud: Public
90+
isProduction: true
91+
approval:
92+
workflow: approvalService
93+
jobs:
94+
- job: Job_1
95+
displayName: Agentless job
96+
condition: succeeded()
97+
timeoutInMinutes: 7200
98+
pool: server
99+
steps:
100+
- task: ReleasePipeline.approvalservice-ext.a81eb944-f6e7-40bb-acb3-6f68822bc5ab.ApprovalTask@1
101+
displayName: Approval service
102+
inputs:
103+
servicetreeguid: $(ServiceTreeGuid)
104+
timeoutInMinutes: 7200
105+
- job: Job_2
106+
displayName: Agent job - Ev2
107+
condition: succeeded()
108+
timeoutInMinutes: 0
109+
templateContext:
110+
type: releaseJob
111+
workflow: ev2-classic
112+
ev2:
113+
useServerMonitorTask: true
114+
serviceRootPath: ServiceGroupRoot
115+
rolloutSpecPath: Public.CanaryStable.RolloutSpec.json
116+
inlineScopeBindingOverrides: '{ "$schema": "https://ev2schema.azure.net/schemas/2020-01-01/scopeBindings.json", "contentVersion": "0.0.0.1", "scopeBindings": [ { "scopeTagName": "CanaryStable", "bindings": [ { "find": "__RELEASE_STAGE__", "replaceWith": "CanaryStable" }, { "find": "__ADMIN_SUBSCRIPTION_ID__", "replaceWith": "$(ADMIN_SUBSCRIPTION_ID)" }, { "find": "__CHART_VERSION__", "replaceWith": "$(CHART_VERSION)" }, { "find": "__IS_CUSTOMER_HIDDEN__", "replaceWith": "$(IS_CUSTOMER_HIDDEN)" }, { "find": "__REGISTER_REGIONS_CANARY__", "replaceWith": "$(REGISTER_REGIONS_CANARY)" }, { "find": "__RELEASE_TRAINS_PREVIEW_PATH__", "replaceWith": "$(RELEASE_TRAINS_PREVIEW_PATH)" }, { "find": "__RELEASE_TRAINS_STABLE_PATH__", "replaceWith": "$(RELEASE_TRAINS_STABLE_PATH)" }, { "find": "__RESOURCE_AUDIENCE__", "replaceWith": "$(RESOURCE_AUDIENCE)" }, { "find": "__SPN_CLIENT_ID__", "replaceWith": "$(SPN_CLIENT_ID)" }, { "find": "__SPN_SECRET__", "replaceWith": "$(SPN_SECRET)" }, { "find": "__SPN_TENANT_ID__", "replaceWith": "$(SPN_TENANT_ID)" }, { "find": "__MANAGED_IDENTITY__", "replaceWith": "$(MANAGED_IDENTITY)" } ] } ] } '

0 commit comments

Comments
 (0)