Sure! Pl
This commit is contained in:
23
scripts/deploy/deploy-prod.sh
Executable file
23
scripts/deploy/deploy-prod.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "⚠️ WARNING: You are about to deploy to PRODUCTION!"
|
||||
read -p "Are you sure? (yes/no): " confirm
|
||||
|
||||
if [ "$confirm" != "yes" ]; then
|
||||
echo "Deployment cancelled"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🚀 Deploying to production..."
|
||||
|
||||
if [ -z "$KUBECONFIG" ]; then
|
||||
echo "❌ KUBECONFIG environment variable not set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
kubectl apply -f deployments/production/kubernetes/
|
||||
kubectl rollout status deployment/auth-service -n production
|
||||
|
||||
echo "✅ Deployment completed!"
|
||||
Reference in New Issue
Block a user