Skip to content

Commit e735c31

Browse files
committed
Add back-office domain GitHub variables to deploy command
1 parent c9c55ff commit e735c31

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

developer-cli/Commands/DeployCommand.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ [bold]Please review planned changes before continuing.[/]
495495
* STAGING_SERVICE_PRINCIPAL_ID: [blue]{stagingServicePrincipal}[/]
496496
* STAGING_POSTGRES_ADMIN_OBJECT_ID: [blue]{stagingPostgresAdminObject}[/]
497497
* STAGING_DOMAIN_NAME: [blue]-[/] ([yellow]Manually changed this and triggered deployment to set up the domain[/])
498+
* STAGING_BACK_OFFICE_DOMAIN_NAME: [blue]-[/] ([yellow]Manually change this to enable the back-office subdomain (e.g. back-office.staging.your-saas-company.com)[/])
498499
499500
[bold]Staging Cluster Variables:[/]
500501
* STAGING_CLUSTER_ENABLED: [blue]true[/]
@@ -508,6 +509,7 @@ [bold]Please review planned changes before continuing.[/]
508509
* PRODUCTION_SERVICE_PRINCIPAL_OBJECT_ID: [blue]{Config.ProductionSubscription.AppRegistration.ServicePrincipalObjectId}[/]
509510
* PRODUCTION_POSTGRES_ADMIN_OBJECT_ID: [blue]{productionPostgresAdminObject}[/]
510511
* PRODUCTION_DOMAIN_NAME: [blue]-[/] ([yellow]Manually changed this and triggered deployment to set up the domain[/])
512+
* PRODUCTION_BACK_OFFICE_DOMAIN_NAME: [blue]-[/] ([yellow]Manually change this to enable the back-office subdomain (e.g. back-office.your-saas-company.com)[/])
511513
512514
[bold]Production Cluster 1 Variables:[/]
513515
* PRODUCTION_CLUSTER1_ENABLED: [blue]false[/] ([yellow]Change this to 'true' when ready to deploy to production[/])
@@ -725,6 +727,7 @@ private static void CreateGithubSecretsAndVariables()
725727
SetGithubVariable(VariableNames.STAGING_SHARED_LOCATION, Config.StagingLocation.SharedLocation);
726728
SetGithubVariable(VariableNames.STAGING_POSTGRES_ADMIN_OBJECT_ID, Config.StagingSubscription.PostgresAdminsGroup.ObjectId!);
727729
SetGithubVariable(VariableNames.STAGING_DOMAIN_NAME, "-");
730+
SetGithubVariable(VariableNames.STAGING_BACK_OFFICE_DOMAIN_NAME, "-");
728731

729732
SetGithubVariable(VariableNames.STAGING_CLUSTER_ENABLED, "true");
730733
SetGithubVariable(VariableNames.STAGING_CLUSTER_LOCATION, Config.StagingLocation.ClusterLocation);
@@ -736,6 +739,7 @@ private static void CreateGithubSecretsAndVariables()
736739
SetGithubVariable(VariableNames.PRODUCTION_SHARED_LOCATION, Config.ProductionLocation.SharedLocation);
737740
SetGithubVariable(VariableNames.PRODUCTION_POSTGRES_ADMIN_OBJECT_ID, Config.ProductionSubscription.PostgresAdminsGroup.ObjectId!);
738741
SetGithubVariable(VariableNames.PRODUCTION_DOMAIN_NAME, "-");
742+
SetGithubVariable(VariableNames.PRODUCTION_BACK_OFFICE_DOMAIN_NAME, "-");
739743

740744
SetGithubVariable(VariableNames.PRODUCTION_CLUSTER1_ENABLED, "false");
741745
SetGithubVariable(VariableNames.PRODUCTION_CLUSTER1_LOCATION, Config.ProductionLocation.ClusterLocation);
@@ -885,7 +889,7 @@ private void ShowSuccessMessage()
885889
886890
- Configure the Domain Name for the staging and production environments. This involves two steps:
887891
888-
a. Go to [blue]{Config.GithubInfo!.Url}/settings/variables/actions[/] to set the [blue]DOMAIN_NAME_STAGING[/] and [blue]DOMAIN_NAME_PRODUCTION[/] variables. E.g. [blue]staging.your-saas-company.com[/] and [blue]your-saas-company.com[/].
892+
a. Go to [blue]{Config.GithubInfo!.Url}/settings/variables/actions[/] to set the [blue]STAGING_DOMAIN_NAME[/] and [blue]PRODUCTION_DOMAIN_NAME[/] variables. E.g. [blue]staging.your-saas-company.com[/] and [blue]your-saas-company.com[/]. To enable the back-office subdomain, also set the [blue]STAGING_BACK_OFFICE_DOMAIN_NAME[/] and [blue]PRODUCTION_BACK_OFFICE_DOMAIN_NAME[/] variables. E.g. [blue]back-office.staging.your-saas-company.com[/] and [blue]back-office.your-saas-company.com[/].
889893
890894
b. Run the [blue]Cloud Infrastructure - Deployment[/] workflow again. Note that it might fail with an error message to set up a DNS TXT and CNAME record. Once done, re-run the failed jobs.
891895
@@ -1068,6 +1072,7 @@ public enum VariableNames
10681072
STAGING_SHARED_LOCATION,
10691073
STAGING_POSTGRES_ADMIN_OBJECT_ID,
10701074
STAGING_DOMAIN_NAME,
1075+
STAGING_BACK_OFFICE_DOMAIN_NAME,
10711076

10721077
STAGING_CLUSTER_ENABLED,
10731078
STAGING_CLUSTER_LOCATION,
@@ -1079,6 +1084,7 @@ public enum VariableNames
10791084
PRODUCTION_SHARED_LOCATION,
10801085
PRODUCTION_POSTGRES_ADMIN_OBJECT_ID,
10811086
PRODUCTION_DOMAIN_NAME,
1087+
PRODUCTION_BACK_OFFICE_DOMAIN_NAME,
10821088

10831089
PRODUCTION_CLUSTER1_ENABLED,
10841090
PRODUCTION_CLUSTER1_LOCATION,

0 commit comments

Comments
 (0)