Skip to content

Commit b08c60b

Browse files
committed
change deploy.yml
1 parent 33aef13 commit b08c60b

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,17 @@ jobs:
129129
key: ${{ secrets.RASPBERRY_PI_SSH_KEY }}
130130
port: 2022
131131
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
132+
sleep 120
133+
for i in {1..10}; do
134+
if curl -sf http://localhost/api/actuator/health; then
135+
echo "✅ SpringBoot health check passed"
136+
exit 0
137+
fi
138+
echo "Retry $i/10..."
139+
sleep 5
140+
done
141+
echo "❌ SpringBoot health check failed"
142+
exit 1
141143
142144
./deploy.sh status
143145

0 commit comments

Comments
 (0)