feat: add env-file input for compose interpolation#51
Conversation
Exposes the CLI's new --env-file support via a COMPOSE_ENV_FILES environment variable, so workflows can point compose interpolation at a non-default env file (e.g. .env.production). Whitespace-delimited input is converted to the comma-separated form the CLI expects, matching how `project` maps to COMPOSE_PROJECT_NAME. - action.yaml: new env-file input; set COMPOSE_ENV_FILES - README: document the env-file input - test.yaml + fixtures: assert env-file interpolation reaches the CLI Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sw7j9FYnbChZJbYArxbhuo
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Adds an
env-fileinput so workflows can point Compose interpolation at a non-default environment file (e.g..env.production), matchingdocker compose --env-file.The input is mapped to the
COMPOSE_ENV_FILESenvironment variable that the Defang CLI reads (whitespace-delimited input is converted to the comma-separated form the CLI expects), the same wayprojectmaps toCOMPOSE_PROJECT_NAME. Using the env var means it applies to whatevercommandruns, not justcompose up.Depends on the CLI-side support in DefangLabs/defang#2178.
Usage
Changes
action.yaml: newenv-fileinput; setCOMPOSE_ENV_FILESin the env-setup step.README.md: new "Using an Environment File" section..github/workflows/test.yaml+test/compose.envfile.yaml+test/action.env: a step that runscompose configwithenv-fileand asserts the interpolated value reaches the CLI output.🤖 Generated with Claude Code
https://claude.ai/code/session_01Sw7j9FYnbChZJbYArxbhuo