fix: production uses namespace default + remove foursat namespace references
Build and Deploy to Production / build-and-deploy (push) Successful in 8m44s

This commit is contained in:
masoodafar-web
2026-02-23 21:36:08 +03:30
parent e57f01965a
commit 540a2ce4fc
2 changed files with 6 additions and 7 deletions
+2 -3
View File
@@ -94,10 +94,9 @@ jobs:
# Apply manifests and update image
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} "
kubectl create namespace foursat --dry-run=client -o yaml | kubectl apply -f - &&
kubectl apply -f /tmp/cms-deployment.yaml &&
kubectl set image deployment/cms cms=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} -n foursat &&
kubectl rollout status deployment/cms -n foursat --timeout=300s &&
kubectl set image deployment/cms cms=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} &&
kubectl rollout status deployment/cms --timeout=300s &&
rm -f /tmp/cms-deployment.yaml
"
echo "✅ Deployed to Production!"