Skip to content

Commit 4fe2bc1

Browse files
committed
update
1 parent 00d307c commit 4fe2bc1

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/deployment-strategy.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ jobs:
120120
echo "❌ Keycloak failed to start within timeout"
121121
echo "📋 Checking Keycloak container logs..."
122122
docker logs alpha-keycloak --tail 50
123+
124+
# Set failure outputs
125+
echo "fhir_server_url=" >> $GITHUB_OUTPUT
126+
echo "keycloak_url=" >> $GITHUB_OUTPUT
127+
echo "deployment_status=failed" >> $GITHUB_OUTPUT
128+
echo "deployment_target=local" >> $GITHUB_OUTPUT
129+
123130
exit 1
124131
fi
125132
@@ -142,7 +149,22 @@ jobs:
142149
143150
# Wait for backend to be ready
144151
echo "⏳ Waiting for FHIR backend..."
145-
timeout 120s bash -c 'until curl -f http://localhost:3001/health; do sleep 5; done'
152+
if ! timeout 120s bash -c 'until curl -f http://localhost:3001/health; do sleep 5; done'; then
153+
echo "❌ FHIR backend failed to start within timeout"
154+
echo "📋 Checking backend logs..."
155+
if [ -f backend.pid ]; then
156+
echo "Backend PID: $(cat backend.pid)"
157+
ps aux | grep $(cat backend.pid) || echo "Backend process not running"
158+
fi
159+
160+
# Set failure outputs
161+
echo "fhir_server_url=" >> $GITHUB_OUTPUT
162+
echo "keycloak_url=http://localhost:8080" >> $GITHUB_OUTPUT
163+
echo "deployment_status=failed" >> $GITHUB_OUTPUT
164+
echo "deployment_target=local" >> $GITHUB_OUTPUT
165+
166+
exit 1
167+
fi
146168
147169
# Set outputs
148170
echo "fhir_server_url=http://localhost:3001" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)