Skip to content

Commit 9fb3e70

Browse files
committed
Updated pipeline and settings for live deployment
1 parent dcc82c3 commit 9fb3e70

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

azure-pipeline - Crm.Hubspot.OAuthProxy.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ variables:
88
projectName: 'Umbraco.Forms.Integrations.Crm.Hubspot.OAuthProxy'
99
project: 'src/$(projectName)/$(projectName).csproj'
1010
buildConfiguration: 'Release'
11-
azureServiceConnection: 'Umbraco Forms Integrations - Umbraco Cloud Services Dev - Hubspot Auth'
12-
webAppName: 'azapp-forms-hubspot-auth-we-dev-svc'
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'
1315

1416
steps:
1517
- script: dotnet build $(project) --configuration $(buildConfiguration)
@@ -21,16 +23,35 @@ steps:
2123
projects: $(project)
2224
publishWebProjects: false
2325
- task: AzureWebApp@1
24-
displayName: 'Deploy Web App'
26+
displayName: 'Deploy Web App (Dev)'
2527
inputs:
26-
azureSubscription: $(azureServiceConnection)
27-
appName: $(webAppName)
28+
azureSubscription: $(azureServiceConnectionDev)
29+
appName: $(webAppNameDev)
2830
package: '$(System.DefaultWorkingDirectory)/**/*.zip'
2931
- task: AzureAppServiceSettings@1
30-
displayName: 'Set Web App Settings'
32+
displayName: 'Set Web App Settings (Dev)'
3133
inputs:
32-
azureSubscription: $(azureServiceConnection)
33-
appName: $(webAppName)
34+
azureSubscription: $(azureServiceConnectionDev)
35+
appName: $(webAppNameDev)
36+
appSettings: |
37+
[
38+
{
39+
"name": "AppSettings:ClientSecret",
40+
"value": "$(hubSpotAppSecretKey)",
41+
"slotSetting": false
42+
}
43+
]
44+
- task: AzureWebApp@1
45+
displayName: 'Deploy Web App (Live)'
46+
inputs:
47+
azureSubscription: $(azureServiceConnectionLive)
48+
appName: $(webAppNameLive)
49+
package: '$(System.DefaultWorkingDirectory)/**/*.zip'
50+
- task: AzureAppServiceSettings@1
51+
displayName: 'Set Web App Settings (Live)'
52+
inputs:
53+
azureSubscription: $(azureServiceConnectionLive)
54+
appName: $(webAppNameLive)
3455
appSettings: |
3556
[
3657
{

src/Umbraco.Forms.Integrations.Crm.Hubspot/Services/HubspotContactService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class HubspotContactService : IContactService
3737
private const string OAuthScopes = "crm.objects.contacts.read%20crm.objects.contacts.write";
3838
private const string OAauthClientId = "1a04f5bf-e99e-48e1-9d62-6c25bf2bdefe";
3939

40-
private const string OAuthRedirectUrl = "https://hubspot-forms-auth.rainbowsrock.net/";
41-
private const string OAuthTokenProxyUrl = "https://hubspot-forms-auth.rainbowsrock.net//oauth/v1/token";
40+
private const string OAuthRedirectUrl = "https://hubspot-forms-auth.umbraco.com/";
41+
private const string OAuthTokenProxyUrl = "https://hubspot-forms-auth.umbraco.com/oauth/v1/token";
4242

4343
private const string AccessTokenCacheKey = "HubSpotOAuthAccessToken";
4444

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 - Crm.Hubspot.OAuthProxy.yml = ..\azure-pipeline - Crm.Hubspot.OAuthProxy.yml
1819
..\azure-pipeline - Crm.Hubspot.yml = ..\azure-pipeline - Crm.Hubspot.yml
1920
..\README.md = ..\README.md
2021
EndProjectSection

0 commit comments

Comments
 (0)