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 @@ -66,14 +66,20 @@ jobs:
66
66
max_runs=10
67
67
for i in $(seq 1 $max_runs); do
68
68
echo "$i: checking api status..."
69
- 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/)
69
+ 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/)
70
+ echo "$RESPONSE"
70
71
if [ "$RESPONSE" -ne 200 ]; then
71
72
echo "API is down. Retrying in 10 seconds..."
72
73
sleep 10
73
74
else
74
75
echo "API online."
75
76
exit 0
76
77
fi
78
+
79
+ if [ $i -eq $max_runs ]; then
80
+ echo "Failed to start API after $max_runs retries."
81
+ exit 1
82
+ fi
77
83
done
78
84
79
85
- name : Install integration requirements
You can’t perform that action at this time.
0 commit comments