Skip to content

Commit 380dba8

Browse files
committed
Pipeline script
1 parent db47747 commit 380dba8

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

azure-pipeline - Cms.OAuthProxy.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
trigger:
2+
- feature/semrush-auth
3+
4+
pool:
5+
vmImage: 'windows-latest'
6+
7+
variables:
8+
projectName: 'Umbraco.Cms.Integrations.OAuthProxy'
9+
project: 'src/$(projectName)/$(projectName).csproj'
10+
buildConfiguration: 'Release'
11+
azureServiceConnectionDev: 'Umbraco Forms Integrations - Umbraco Cloud Services Dev - Hubspot Auth'
12+
azureServiceConnectionLive: 'Umbraco Forms Integrations - Umbraco Cloud Services Live - Hubspot Auth'
13+
webAppNameDev: 'azapp-forms-hubspot-auth-we-dev-svc'
14+
webAppNameLive: 'azapp-forms-hubspot-auth-we-live-svc'
15+
16+
steps:
17+
- script: dotnet build $(project) --configuration $(buildConfiguration)
18+
displayName: 'Buid Web App'
19+
- task: DotNetCoreCLI@2
20+
displayName: 'Publish Web App'
21+
inputs:
22+
command: 'publish'
23+
projects: $(project)
24+
publishWebProjects: false
25+
- task: AzureWebApp@1
26+
displayName: 'Deploy Web App (Dev)'
27+
inputs:
28+
azureSubscription: $(azureServiceConnectionDev)
29+
appName: $(webAppNameDev)
30+
package: '$(System.DefaultWorkingDirectory)/**/*.zip'
31+
- task: AzureAppServiceSettings@1
32+
displayName: 'Set Web App Settings (Dev)'
33+
inputs:
34+
azureSubscription: $(azureServiceConnectionDev)
35+
appName: $(webAppNameDev)
36+
appSettings: |
37+
[
38+
{
39+
"name": "AppSettings:HubspotClientSecret",
40+
"value": "$(hubSpotAppSecretKey)",
41+
"slotSetting": false
42+
},
43+
{
44+
"name": "AppSettings:SemrushClientSecret",
45+
"value": "$(semrushAppSecretKey)",
46+
"slotSetting": false
47+
}
48+
]
49+
- task: AzureWebApp@1
50+
displayName: 'Deploy Web App (Live)'
51+
inputs:
52+
azureSubscription: $(azureServiceConnectionLive)
53+
appName: $(webAppNameLive)
54+
package: '$(System.DefaultWorkingDirectory)/**/*.zip'
55+
- task: AzureAppServiceSettings@1
56+
displayName: 'Set Web App Settings (Live)'
57+
inputs:
58+
azureSubscription: $(azureServiceConnectionLive)
59+
appName: $(webAppNameLive)
60+
appSettings: |
61+
[
62+
{
63+
"name": "AppSettings:HubspotClientSecret",
64+
"value": "$(hubSpotAppSecretKey)",
65+
"slotSetting": false
66+
},
67+
{
68+
"name": "AppSettings:SemrushClientSecret",
69+
"value": "$(semrushAppSecretKey)",
70+
"slotSetting": false
71+
}
72+
]

src/Umbraco.Forms.Integrations.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Forms.Integrations.
1515
EndProject
1616
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D8563F12-E8CF-4900-BEF4-531B8C1FE8A3}"
1717
ProjectSection(SolutionItems) = preProject
18+
..\azure-pipeline - Cms.OAuthProxy.yml = ..\azure-pipeline - Cms.OAuthProxy.yml
1819
..\azure-pipeline - Crm.Hubspot.OAuthProxy.yml = ..\azure-pipeline - Crm.Hubspot.OAuthProxy.yml
1920
..\azure-pipeline - Crm.Hubspot.yml = ..\azure-pipeline - Crm.Hubspot.yml
2021
..\README.md = ..\README.md

0 commit comments

Comments
 (0)