Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCI-850: Replace ArgoConfigFile with Manifest parameter #130

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/VirtoCommerce.Build/Cloud/Build.SaaS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ internal partial class Build
[Parameter("Config file for Argo Application Service")]
public string ArgoConfigFile { get; set; }

[Parameter("Path to the manifest of environment")] public string Manifest { get; set; }

[Parameter("Array of Helm parameters")]
public HelmParameter[] HelmParameters { get; set; }

Expand Down Expand Up @@ -123,7 +125,7 @@ public string CloudAuthProvider
.Executes(async () =>
{
var cloudClient = new VirtoCloudClient(CloudUrl, await GetCloudTokenAsync());
var rawYaml = await File.ReadAllTextAsync(ArgoConfigFile);
var rawYaml = await File.ReadAllTextAsync(string.IsNullOrWhiteSpace(Manifest) ? ArgoConfigFile : Manifest);
await cloudClient.UpdateEnvironmentAsync(rawYaml, AppProject);
});

Expand Down
Loading