fix: debugging 502s in pinging (4)
This commit is contained in:
@@ -9,6 +9,9 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up opensearch directory
|
||||
run: mkdir shuffle-database && chmod -R 755 shuffle-database
|
||||
|
||||
- name: Build the stack
|
||||
run: docker-compose up -d
|
||||
@@ -31,7 +34,7 @@ jobs:
|
||||
done
|
||||
echo "No containers were found in a restarting state after $ATTEMPTS checks."
|
||||
|
||||
- name: Check if the response from the web service includes "Shuffle"
|
||||
- name: Check if the response from the frontend contains the word "Shuffle"
|
||||
run: |
|
||||
RESPONSE=$(curl -s http://localhost:3001)
|
||||
if echo "$RESPONSE" | grep -q "Shuffle"; then
|
||||
@@ -65,7 +68,6 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "Received status code $STATUS_CODE. Retrying in $RETRY_INTERVAL seconds... ($i/$MAX_RETRIES)"
|
||||
|
||||
echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..."
|
||||
|
||||
logs_output=$(docker logs --tail 30 "$CONTAINER_NAME")
|
||||
|
||||
Reference in New Issue
Block a user