ci: simplify deploy workflow - frontend now builds in Docker
Deploy Research Workbench / deploy (push) Failing after 14m27s
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:
@@ -13,18 +13,10 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
working-directory: /home/ken/workspace/research-workbench
|
||||
run: |
|
||||
# Stop the old car-help container if still running
|
||||
docker rm -f car-help 2>/dev/null || true
|
||||
# Stop any existing workbench container
|
||||
docker compose down 2>/dev/null || true
|
||||
|
||||
- name: Build and start container
|
||||
@@ -39,14 +31,14 @@ jobs:
|
||||
- name: Wait for healthy
|
||||
run: |
|
||||
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
|
||||
echo "App is up at http://localhost:8080/"
|
||||
exit 0
|
||||
fi
|
||||
sleep 2
|
||||
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
|
||||
exit 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user