Add canonical CV artifact pipeline

This commit is contained in:
2026-03-28 23:32:54 +01:00
parent d8ab312f59
commit 107c181506
10 changed files with 619 additions and 82 deletions
+8
View File
@@ -7,6 +7,7 @@ namespace JobTrackerApi.Services
{
public string DataRoot { get; }
public string AttachmentsRoot { get; }
public string CvArtifactsRoot { get; }
public AppPaths(IConfiguration cfg, IHostEnvironment env)
{
@@ -23,6 +24,13 @@ namespace JobTrackerApi.Services
Directory.CreateDirectory(attachmentsRoot);
AttachmentsRoot = attachmentsRoot;
var cvArtifactsRoot = (cfg["Data:CvArtifactsRoot"] ?? "").Trim();
if (string.IsNullOrWhiteSpace(cvArtifactsRoot)) cvArtifactsRoot = Path.Combine(DataRoot, "CvArtifacts");
if (!Path.IsPathRooted(cvArtifactsRoot)) cvArtifactsRoot = Path.Combine(env.ContentRootPath, cvArtifactsRoot);
Directory.CreateDirectory(cvArtifactsRoot);
CvArtifactsRoot = cvArtifactsRoot;
}
public string GetDbPath(string fileName = "jobtracker.db") => Path.Combine(DataRoot, fileName);