Skip to content

Commit 7dcbb38

Browse files
Enhances deployment workflow with summaries
Adds deployment summary to the workflow, providing detailed information about the deployed service, image, and pod status in the job summary. Also, it includes a success notification with links to deployed services and sets fail-fast to false to ensure all services are deployed.
1 parent 211feaa commit 7dcbb38

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
build-and-deploy:
1515
runs-on: ubuntu-latest
1616
strategy:
17+
fail-fast: false
1718
matrix:
1819
service:
1920
- name: docs-manager
@@ -69,4 +70,33 @@ jobs:
6970
7071
- name: Verify deployment
7172
run: |
72-
kubectl get pods -n ${{ env.NAMESPACE }} -l app=${{ matrix.service.deployment }}
73+
echo "✅ Deployment successful for ${{ matrix.service.name }}"
74+
kubectl get pods -n ${{ env.NAMESPACE }} -l app=${{ matrix.service.deployment }}
75+
76+
- name: Deployment Summary
77+
if: always()
78+
run: |
79+
echo "### 🚀 Deployment Summary" >> $GITHUB_STEP_SUMMARY
80+
echo "" >> $GITHUB_STEP_SUMMARY
81+
echo "**Service:** ${{ matrix.service.name }}" >> $GITHUB_STEP_SUMMARY
82+
echo "**Image:** ${{ env.REGISTRY }}/${{ matrix.service.image }}:${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
83+
echo "**Status:** ${{ job.status }}" >> $GITHUB_STEP_SUMMARY
84+
echo "" >> $GITHUB_STEP_SUMMARY
85+
echo "#### Pods:" >> $GITHUB_STEP_SUMMARY
86+
echo '```' >> $GITHUB_STEP_SUMMARY
87+
kubectl get pods -n ${{ env.NAMESPACE }} -l app=${{ matrix.service.deployment }} >> $GITHUB_STEP_SUMMARY
88+
echo '```' >> $GITHUB_STEP_SUMMARY
89+
90+
notify-success:
91+
name: Deployment Success
92+
runs-on: ubuntu-latest
93+
needs: [build-and-deploy]
94+
if: success()
95+
steps:
96+
- name: Success Summary
97+
run: |
98+
echo "### ✅ Deployment Successful!" >> $GITHUB_STEP_SUMMARY
99+
echo "" >> $GITHUB_STEP_SUMMARY
100+
echo "All services deployed successfully:" >> $GITHUB_STEP_SUMMARY
101+
echo "- 🌐 DocsManager: https://goland-ia-backend-docs-manager.reto-ucu.net" >> $GITHUB_STEP_SUMMARY
102+
echo "- 🌐 RAGManager: https://goland-ia-backend-rag-manager.reto-ucu.net" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)