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 # Apply manifests and update image
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} " 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 apply -f /tmp/cms-deployment.yaml &&
kubectl set image deployment/cms cms=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} -n foursat && kubectl set image deployment/cms cms=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} &&
kubectl rollout status deployment/cms -n foursat --timeout=300s && kubectl rollout status deployment/cms --timeout=300s &&
rm -f /tmp/cms-deployment.yaml rm -f /tmp/cms-deployment.yaml
" "
echo "✅ Deployed to Production!" echo "✅ Deployed to Production!"
+4 -4
View File
@@ -4,7 +4,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: cms-uploads-pvc name: cms-uploads-pvc
namespace: foursat namespace: default
labels: labels:
app: cms app: cms
spec: spec:
@@ -20,7 +20,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: cms name: cms
namespace: foursat namespace: default
labels: labels:
app: cms app: cms
spec: spec:
@@ -86,7 +86,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: cms-svc name: cms-svc
namespace: foursat namespace: default
spec: spec:
selector: selector:
app: cms app: cms
@@ -102,7 +102,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: cms-ingress name: cms-ingress
namespace: foursat namespace: default
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod" cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/ssl-redirect: "true"