File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,20 @@ jobs:
60
60
max_runs=10
61
61
for i in $(seq 1 $max_runs); do
62
62
echo "$i: checking api status..."
63
- RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -u "${{ env.DJANGO_SUPERUSER_USERNAME }}:${{ env.DJANGO_SUPERUSER_PASSWORD }}" -LI http://localhost:5001/api/galaxy/pulp/api/v3/status/)
63
+ RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -u "${{ env.DJANGO_SUPERUSER_USERNAME }}:${{ env.DJANGO_SUPERUSER_PASSWORD }}" -LI http://localhost:5001${{ env.PULP_GALAXY_API_PATH_PREFIX }}pulp/api/v3/status/)
64
+ echo "$RESPONSE"
64
65
if [ "$RESPONSE" -ne 200 ]; then
65
66
echo "API is down. Retrying in 10 seconds..."
66
67
sleep 10
67
68
else
68
69
echo "API online."
69
70
exit 0
70
71
fi
72
+
73
+ if [ $i -eq $max_runs ]; then
74
+ echo "Failed to start API after $max_runs retries."
75
+ exit 1
76
+ fi
71
77
done
72
78
73
79
- name : Install integration requirements
You can’t perform that action at this time.
0 commit comments