prom3theu5 / aspirational-manifests

Handle deployments of .NET Aspire AppHost Projects
MIT License
702 stars 36 forks source link

Is there a way to pass parameters to cli non-interactive command. #266

Open SSIvanov19 opened 3 weeks ago

SSIvanov19 commented 3 weeks ago

🔥 Bug Description

I am trying to run aspirate generate inside GitHub Action. When the program asks for parameters, I get the following error:

(!) Cannot obtain non-generated values for inputs in non-interactive mode.  Inputs are required according to the manifest.

This is the full command that I am running:

aspirate generate --non-interactive --disable-secrets --namespace project-namespace -ct dev-latest --include-dashboard true --image-pull-policy Always

This is the output from the console:

Handle deployments of a .NET Aspire AppHost
── Handling Aspirate State ─────────────────────────────────────────────────────
── Handling Aspirate Secrets ───────────────────────────────────────────────────
Secrets are disabled.
Non-interactive mode enabled.
── Handling Configuration ──────────────────────────────────────────────────────
Successfully loaded existing aspirate bootstrap settings from '.'.
── Handling Aspire Manifest ────────────────────────────────────────────────────
Generating Aspire Manifest for supplied App Host
(✔) Done:  Created Aspire Manifest At Path: 
/home/runner/work/<repo>/manifest.json
── Selecting Required Components ───────────────────────────────────────────────
Non-Interactive Mode: Processing all components in the loaded file.
── Handling Aspire Dashboard ───────────────────────────────────────────────────
── Handling Inputs ─────────────────────────────────────────────────────────────
(!) Cannot obtain non-generated values for inputs in non-interactive mode. 
Inputs are required according to the manifest.
(1): Aspirate will now exit.