ci: simplify deploy workflow - frontend now builds in Docker
Deploy Research Workbench / deploy (push) Failing after 14m27s

Removed npm ci/build step from workflow since the Dockerfile now
handles the full frontend build. Increased health check timeout to 180s.

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
This commit is contained in:
Ken
2026-05-26 23:52:27 +00:00
parent a84fd517a8
commit a21329bb04
+2 -10
View File
@@ -13,18 +13,10 @@ jobs:
run: | run: |
git pull origin main git pull origin main
- name: Build frontend
working-directory: /home/ken/workspace/research-workbench/frontend
run: |
npm ci
npm run build
- name: Stop old containers - name: Stop old containers
working-directory: /home/ken/workspace/research-workbench working-directory: /home/ken/workspace/research-workbench
run: | run: |
# Stop the old car-help container if still running
docker rm -f car-help 2>/dev/null || true docker rm -f car-help 2>/dev/null || true
# Stop any existing workbench container
docker compose down 2>/dev/null || true docker compose down 2>/dev/null || true
- name: Build and start container - name: Build and start container
@@ -39,14 +31,14 @@ jobs:
- name: Wait for healthy - name: Wait for healthy
run: | run: |
echo "Waiting for container to start..." echo "Waiting for container to start..."
for i in $(seq 1 60); do for i in $(seq 1 90); do
if curl -sf http://localhost:8080/ > /dev/null 2>&1; then if curl -sf http://localhost:8080/ > /dev/null 2>&1; then
echo "App is up at http://localhost:8080/" echo "App is up at http://localhost:8080/"
exit 0 exit 0
fi fi
sleep 2 sleep 2
done done
echo "ERROR: App did not respond within 120s" echo "ERROR: App did not respond within 180s"
docker compose -f /home/ken/workspace/research-workbench/docker-compose.yml logs --tail=50 docker compose -f /home/ken/workspace/research-workbench/docker-compose.yml logs --tail=50
exit 1 exit 1