|
78 | 78 | run: | |
79 | 79 | kubectl rollout restart deployment -n team-git-push-force-dev |
80 | 80 |
|
81 | | - - name: Verify Deployment |
82 | | - run: | |
83 | | -# echo "Verifying deployment to staging environment..." |
84 | | -# RETRY_COUNT=0 |
85 | | -# MAX_RETRIES=10 |
86 | | -# until kubectl get pods -n team-git-push-force-dev -l app.kubernetes.io/name=ai-event-concepter -o jsonpath='{.items[*].status.containerStatuses[*].ready}' | grep -q "true" || [ $RETRY_COUNT -eq $MAX_RETRIES ]; do |
87 | | -# echo "Waiting for pods to be ready... ($(($RETRY_COUNT+1))/$MAX_RETRIES)" |
88 | | -# sleep 10 |
89 | | -# RETRY_COUNT=$((RETRY_COUNT+1)) |
90 | | -# done |
91 | | -# |
92 | | -# if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then |
93 | | -# echo "Pods didn't become ready within the timeout period" |
94 | | -# kubectl get pods -n team-git-push-force-dev |
95 | | -# exit 1 |
96 | | -# fi |
97 | | - |
98 | | - echo "✅ Staging deployment verified successfully!" |
99 | | - |
100 | 81 | # Deploy to production environment |
101 | 82 | deploy_production: |
102 | 83 | name: Deploy to Production |
@@ -130,22 +111,3 @@ jobs: |
130 | 111 | helm upgrade --debug --install -n team-git-push-force ai-event-concepter . \ |
131 | 112 | --set ingress.host=aieventconcepter.student.k8s.aet.cit.tum.de |
132 | 113 | kubectl rollout restart deployment -n team-git-push-force |
133 | | -
|
134 | | - - name: Verify Deployment |
135 | | - run: | |
136 | | -# echo "Verifying deployment to production environment..." |
137 | | -# RETRY_COUNT=0 |
138 | | -# MAX_RETRIES=10 |
139 | | -# until kubectl get pods -n team-git-push-force -l app.kubernetes.io/name=ai-event-concepter -o jsonpath='{.items[*].status.containerStatuses[*].ready}' | grep -q "true" || [ $RETRY_COUNT -eq $MAX_RETRIES ]; do |
140 | | -# echo "Waiting for pods to be ready... ($(($RETRY_COUNT+1))/$MAX_RETRIES)" |
141 | | -# sleep 10 |
142 | | -# RETRY_COUNT=$((RETRY_COUNT+1)) |
143 | | -# done |
144 | | -# |
145 | | -# if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then |
146 | | -# echo "Pods didn't become ready within the timeout period" |
147 | | -# kubectl get pods -n team-git-push-force |
148 | | -# exit 1 |
149 | | -# fi |
150 | | - |
151 | | - echo "✅ Production deployment verified successfully!" |
0 commit comments