From a21329bb04136025b104f69460787d661f65f46d Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 26 May 2026 23:52:27 +0000 Subject: [PATCH] ci: simplify deploy workflow - frontend now builds in Docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- .gitea/workflows/deploy.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 903c003..f97cefa 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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