Skip to content

Commit

Permalink
Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Feb 26, 2021
1 parent d0e0c04 commit 84447d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docfx V3 Release
name: Release
on:
push:
branches: [ v3-release ]
Expand Down
12 changes: 3 additions & 9 deletions src/docfx/config/ops/OpsAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,9 @@ internal class OpsAccessor : ILearnServiceAccessor

public static readonly DocsEnvironment DocsEnvironment = GetDocsEnvironment();

private static readonly string s_docsProdServiceEndpoint =
Environment.GetEnvironmentVariable("DOCS_PROD_SERVICE_ENDPOINT") ?? "https://buildapi.docs.microsoft.com";

private static readonly string s_docsPPEServiceEndpoint =
Environment.GetEnvironmentVariable("DOCS_PPE_SERVICE_ENDPOINT") ?? "https://BuildApiPubDev.azurefd.net";

private static readonly string s_docsPerfServiceEndpoint =
Environment.GetEnvironmentVariable("DOCS_PERF_SERVICE_ENDPOINT") ?? "https://op-build-perf.azurewebsites.net";

private static readonly string s_docsProdServiceEndpoint = "https://buildapi.docs.microsoft.com";
private static readonly string s_docsPPEServiceEndpoint = "https://BuildApiPubDev.azurefd.net";
private static readonly string s_docsPerfServiceEndpoint = "https://op-build-perf.azurewebsites.net";
private static readonly SecretClient s_secretClient = new(new("https://docfx.vault.azure.net"), new DefaultAzureCredential());
private static readonly Lazy<Task<string>> s_opsTokenProd = new(() => GetSecret("OpsBuildTokenProd"));
private static readonly Lazy<Task<string>> s_opsTokenSandbox = new(() => GetSecret("OpsBuildTokenSandbox"));
Expand Down

0 comments on commit 84447d7

Please sign in to comment.