feat: add makefile targets for production management
Some checks failed
CI/CD Pipeline / Code Quality & Linting (push) Has been cancelled
CI/CD Pipeline / Policy Validation (push) Has been cancelled
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Notifications (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-firm-connectors) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-forms) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-hmrc) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ingestion) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-normalize-map) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ocr) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-indexer) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-reason) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rpa) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (ui-review) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (ui-review) (push) Has been cancelled
CI/CD Pipeline / Generate SBOM (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled

This commit is contained in:
harkon
2025-12-02 15:15:38 +02:00
parent 946b805ec1
commit ee4fd8f361

View File

@@ -233,6 +233,28 @@ deploy-monitoring-prod: ## Deploy monitoring stack (production)
@echo "📊 Deploying production monitoring..." @echo "📊 Deploying production monitoring..."
@./infra/scripts/deploy.sh production monitoring @./infra/scripts/deploy.sh production monitoring
# Production (On-Server) Management
prod-setup: ## Run full production setup (secrets + authentik)
@echo "🚀 Setting up production environment..."
@./scripts/setup-prod.sh
prod-deploy: ## Deploy full production stack
@echo "🚀 Deploying production stack..."
@./infra/scripts/deploy.sh production infrastructure
@./infra/scripts/deploy.sh production services
prod-clean-authentik: ## WIPE Authentik data to reset admin password (DANGER)
@echo "⚠️ WARNING: This will delete all Authentik users and configuration!"
@read -p "Are you sure? (y/N): " confirm && [ "$$confirm" = "y" ] || exit 1
@echo "🛑 Stopping Authentik..."
@docker stop apa-authentik-server apa-authentik-worker apa-authentik-outpost apa-authentik-db apa-authentik-redis 2>/dev/null || true
@docker rm apa-authentik-server apa-authentik-worker apa-authentik-outpost apa-authentik-db apa-authentik-redis 2>/dev/null || true
@echo "🧹 Removing Authentik database volume..."
@docker volume rm infra_apa-authentik-db-data 2>/dev/null || true
@echo "🔄 Restarting Authentik..."
@./infra/scripts/deploy.sh production infrastructure
@echo "✅ Authentik reset complete. Go to https://auth.app.harkon.co.uk/if/flow/initial-setup/ to set admin password."
# Data management # Data management
seed: ## Seed the system with initial data seed: ## Seed the system with initial data
@echo "🌱 Seeding system with initial data..." @echo "🌱 Seeding system with initial data..."