diff --git a/server/Tingle.Dependabot/Workflow/UpdateRunner.cs b/server/Tingle.Dependabot/Workflow/UpdateRunner.cs index 53fca7de..3eb2438d 100644 --- a/server/Tingle.Dependabot/Workflow/UpdateRunner.cs +++ b/server/Tingle.Dependabot/Workflow/UpdateRunner.cs @@ -65,7 +65,7 @@ public async Task CreateAsync(Repository repository, RepositoryUpdate update, Up container.Command.Add("/bin/bash"); container.Command.Add("bin/run.sh"); container.Command.Add("update_script"); - + // add volume mounts container.VolumeMounts.Add(new ContainerVolumeMount(volumeName, "/mnt/dependabot")); @@ -131,7 +131,7 @@ public async Task DeleteAsync(UpdateJob job, CancellationToken cancellationToken // there is no state for jobs that are running if (status is UpdateJobStatus.Running) return null; - + // delete the job directory f it exists var jobDirectory = Path.Join(options.WorkingDirectory, job.Id); if (Directory.Exists(jobDirectory)) @@ -219,7 +219,8 @@ internal IDictionary CreateVariables(Repository repository, Repo // Add optional values values.AddIfNotDefault("DEPENDABOT_DEBUG", options.DebugJobs?.ToString().ToLower()) .AddIfNotDefault("DEPENDABOT_API_URL", options.JobsApiUrl) - .AddIfNotDefault("DEPENDABOT_REPO_CONTENTS_PATH", Path.Join(jobDirectory, "repo")) + // Setting DEPENDABOT_REPO_CONTENTS_PATH causes some issues, ignore till we can resolve + //.AddIfNotDefault("DEPENDABOT_REPO_CONTENTS_PATH", Path.Join(jobDirectory, "repo")) .AddIfNotDefault("UPDATER_DETERMINISTIC", options.DeterministicUpdates?.ToString().ToLower()); values.AddIfNotDefault("GITHUB_ACCESS_TOKEN", options.GithubToken) diff --git a/server/Tingle.Dependabot/Workflow/WorkflowOptions.cs b/server/Tingle.Dependabot/Workflow/WorkflowOptions.cs index e7aee3a4..c642bc55 100644 --- a/server/Tingle.Dependabot/Workflow/WorkflowOptions.cs +++ b/server/Tingle.Dependabot/Workflow/WorkflowOptions.cs @@ -105,11 +105,11 @@ public class WorkflowOptions /// Access key for the storage account. public string? StorageAccountKey { get; set; } // only used with ContainerInstances - + /// Name of the file share for the working directory /// working-dir public string? FileShareName { get; set; } // only used with ContainerInstances - + /// /// Possible/allowed paths for the configuration files in a repository. ///