mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 10:24:02 +00:00
feat(infra): implement multi-environment deployment strategy
- Update CD workflow for branch-based environments (main -> Prod, dev -> Dev) - Support Terraform workspaces for environment isolation - Add manage_runtime_secrets flag to prevent accidental secret destruction - Add infra management and secret setup utility scripts - Prefix GitHub deployer identity with environment name - Synchronize bot environment variables with latest runtime config
This commit is contained in:
@@ -27,9 +27,12 @@
|
||||
"review:coderabbit": "coderabbit --prompt-only --base main || ~/.local/bin/coderabbit --prompt-only --base main",
|
||||
"infra:fmt": "terraform -chdir=infra/terraform fmt -recursive",
|
||||
"infra:fmt:check": "terraform -chdir=infra/terraform fmt -check -recursive",
|
||||
"infra:init": "terraform -chdir=infra/terraform init",
|
||||
"infra:validate": "terraform -chdir=infra/terraform init -backend=false && terraform -chdir=infra/terraform validate",
|
||||
"infra:plan:dev": "terraform -chdir=infra/terraform plan -var-file=dev.tfvars",
|
||||
"infra:apply:dev": "terraform -chdir=infra/terraform apply -var-file=dev.tfvars",
|
||||
"infra:plan:dev": "terraform -chdir=infra/terraform workspace select dev || terraform -chdir=infra/terraform workspace new dev && terraform -chdir=infra/terraform plan -var-file=dev.tfvars",
|
||||
"infra:apply:dev": "terraform -chdir=infra/terraform workspace select dev && terraform -chdir=infra/terraform apply -var-file=dev.tfvars",
|
||||
"infra:plan:prod": "terraform -chdir=infra/terraform workspace select prod || terraform -chdir=infra/terraform workspace new prod && terraform -chdir=infra/terraform plan -var-file=prod.tfvars",
|
||||
"infra:apply:prod": "terraform -chdir=infra/terraform workspace select prod && terraform -chdir=infra/terraform apply -var-file=prod.tfvars",
|
||||
"dev:bot": "bun run --filter @household/bot dev",
|
||||
"dev:miniapp": "bun run --filter @household/miniapp dev",
|
||||
"docker:build:bot": "docker build -f apps/bot/Dockerfile -t household-bot:local .",
|
||||
|
||||
Reference in New Issue
Block a user