@chris1807/claude-kit 2.1.53 → 2.1.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,20 +6,28 @@
6
6
  # Usage:
7
7
  # 1. Copy this file to your project root as azure-pipelines.yml
8
8
  # 2. Replace all {{PLACEHOLDER}} values with your project-specific values
9
- # 3. Remove stages you don't need (e.g., QA if your project doesn't have it)
9
+ # 3. Remove stages you don't need (e.g., Test if your project doesn't have it)
10
10
  # 4. Create a new pipeline in Azure DevOps pointing to this file
11
11
  #
12
12
  # Branch-to-environment mapping:
13
- # develop → Dev
13
+ # main → (compare branch — NOT a trigger; merging a PR into main deploys nothing)
14
+ # dev → Dev
15
+ # test → Test
14
16
  # staging → Staging
15
- # main → Production
17
+ # prod → Production
18
+ #
19
+ # Code moves main → dev → test → staging → prod by PR; each merge below main
20
+ # triggers this pipeline for that one environment.
16
21
 
17
22
  trigger:
18
23
  branches:
19
24
  include:
20
- - develop
25
+ - dev
26
+ - test
21
27
  - staging
22
- - main
28
+ - prod
29
+ exclude:
30
+ - main # compare branch — never deploys
23
31
  paths:
24
32
  include:
25
33
  - "{{PROJECT_PATH}}/**" # e.g., Api/**, Client/**, src/**
@@ -37,6 +45,10 @@ variables:
37
45
  devWebsiteName: "{{DEV_WEBSITE_NAME}}" # e.g., dev.api.compass.caresolutions.com
38
46
  devAppPoolName: "{{DEV_APP_POOL}}" # e.g., dev.api.compass.com
39
47
 
48
+ # Test environment
49
+ testWebsiteName: "{{TEST_WEBSITE_NAME}}" # e.g., test.api.compass.caresolutions.com
50
+ testAppPoolName: "{{TEST_APP_POOL}}" # e.g., test.api.compass.com
51
+
40
52
  # Staging environment
41
53
  stagingWebsiteName: "{{STAGING_WEBSITE_NAME}}" # e.g., staging.api.compass.caresolutions.com
42
54
  stagingAppPoolName: "{{STAGING_APP_POOL}}" # e.g., staging.api.compass.com
@@ -73,7 +85,7 @@ stages:
73
85
  - stage: Dev
74
86
  displayName: "Deploy to Dev"
75
87
  dependsOn: "Build"
76
- condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))
88
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
77
89
  jobs:
78
90
  - deployment: DeployDev
79
91
  displayName: "Deploy to Dev"
@@ -112,6 +124,49 @@ stages:
112
124
  TakeAppOfflineFlag: true
113
125
  XmlVariableSubstitution: true
114
126
 
127
+ # ── Test ───────────────────────────────────────────────
128
+ - stage: Test
129
+ displayName: "Deploy to Test"
130
+ dependsOn: "Build"
131
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/test'))
132
+ jobs:
133
+ - deployment: DeployTest
134
+ displayName: "Deploy to Test"
135
+ environment:
136
+ name: "{{TEST_ENVIRONMENT_NAME}}" # e.g., Test
137
+ resourceType: VirtualMachine
138
+ strategy:
139
+ runOnce:
140
+ deploy:
141
+ steps:
142
+ - task: DownloadPipelineArtifact@2
143
+ inputs:
144
+ artifact: "drop"
145
+ path: "$(Build.ArtifactStagingDirectory)"
146
+
147
+ - task: IISWebAppManagementOnMachineGroup@0
148
+ displayName: "Configure IIS"
149
+ inputs:
150
+ IISDeploymentType: "IISWebsite"
151
+ ActionIISWebsite: "CreateOrUpdateWebsite"
152
+ WebsiteName: "$(testWebsiteName)"
153
+ WebsitePhysicalPath: "$(WebsitePhysicalPath)"
154
+ WebsitePhysicalPathAuth: "WebsiteUserPassThrough"
155
+ AddBinding: false
156
+ CreateOrUpdateAppPoolForWebsite: true
157
+ AppPoolNameForWebsite: "$(testAppPoolName)"
158
+ DotNetVersionForWebsite: "No Managed Code"
159
+ PipeLineModeForWebsite: "Integrated"
160
+ AppPoolIdentityForWebsite: "ApplicationPoolIdentity"
161
+
162
+ - task: IISWebAppDeploymentOnMachineGroup@0
163
+ displayName: "Deploy to IIS"
164
+ inputs:
165
+ WebsiteName: "$(testWebsiteName)"
166
+ Package: "$(Build.ArtifactStagingDirectory)/$(projectName).zip"
167
+ TakeAppOfflineFlag: true
168
+ XmlVariableSubstitution: true
169
+
115
170
  # ── Staging ────────────────────────────────────────────
116
171
  - stage: Staging
117
172
  displayName: "Deploy to Staging"
@@ -159,7 +214,7 @@ stages:
159
214
  - stage: Production
160
215
  displayName: "Deploy to Production"
161
216
  dependsOn: "Build"
162
- condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
217
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/prod'))
163
218
  jobs:
164
219
  - deployment: DeployProd
165
220
  displayName: "Deploy to Production"