We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33aef13 commit b08c60bCopy full SHA for b08c60b
1 file changed
.github/workflows/deploy.yml
@@ -129,15 +129,17 @@ jobs:
129
key: ${{ secrets.RASPBERRY_PI_SSH_KEY }}
130
port: 2022
131
script: |
132
- cd /home/yoon/goormthon-java
133
- sleep 80
134
-
135
- if curl -sf http://localhost/api/actuator/health; then
136
- echo "✅ SpringBoot health check passed"
137
- else
138
- echo "❌ SpringBoot health check failed"
139
- exit 1
140
- fi
+ sleep 120
+ for i in {1..10}; do
+ if curl -sf http://localhost/api/actuator/health; then
+ echo "✅ SpringBoot health check passed"
+ exit 0
+ fi
+ echo "Retry $i/10..."
+ sleep 5
+ done
141
+ echo "❌ SpringBoot health check failed"
142
+ exit 1
143
144
./deploy.sh status
145
0 commit comments