feat: add deployment environment profiles#56
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds first-class “deployment environment profiles” to Beacon’s Helm workflow by generating per-environment values overlays and teaching beacon:deploy to apply both shared + environment-specific values during Helm upgrades.
Changes:
- Generate
values.local.yaml,values.staging.yaml, andvalues.production.yamlalongsidevalues.yamlin Helm chart scaffolds. - Add environment profile discovery + selection (interactive prompt +
--environmentflag) and pass both values files to Helm. - Expand unit/feature coverage for chart generation, environment discovery, install output, and deploy behavior; update README.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
src/Helm/HelmChartGenerator.php |
Adds overlay values files to generated chart outputs. |
stubs/helm/values.local.yaml.stub |
New local overlay defaults (replicas/image tag/env). |
stubs/helm/values.staging.yaml.stub |
New staging overlay defaults. |
stubs/helm/values.production.yaml.stub |
New production overlay defaults. |
src/Deploy/DeploymentEnvironmentProfiles.php |
Introduces profile set model (defaults, prompt options, overlay path helpers). |
src/Deploy/DeploymentEnvironmentProfileRepository.php |
Discovers available profiles from values.*.yaml overlays. |
src/Commands/DeployCommand.php |
Adds --environment, prompts for env, and applies shared + overlay values in deploy. |
src/Deploy/HelmReleaseDeployer.php |
Adds support for passing multiple -f values files to Helm. |
tests/Unit/Helm/HelmChartGeneratorTest.php |
Verifies overlays are rendered and written. |
tests/Unit/Deploy/DeploymentEnvironmentProfileRepositoryTest.php |
Verifies discovery + ordering + default behavior. |
tests/Feature/InstallCommandTest.php |
Asserts overlays are generated by install flow. |
tests/Feature/DeployCommandTest.php |
Asserts deploy prompts/flags and Helm arguments include both values files. |
README.md |
Documents overlay generation and deploy behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
local,staging, andproductionbeacon:deployto select an environment profile and apply both the shared and environment-specific values files during Helm deploysTesting
Closes #47